nicola / isawake

:sunrise: The (eventually) biggest crowdsourced database of people awake, sign up with a pull-request
http://isawake.me
27 stars 25 forks source link

Jawbone integration to check who is sleeping #7

Closed nicola closed 6 years ago

mtt87 commented 9 years ago

Okay I'm looking into this and the pain is the OAuth2 required for Jawbone API. :frowning:

@framp @nicolagreco @pcalessio Do you have experience with OAuth2? A suggestion for the easiest way to retrieve a bearer token just for development mode?

I've seen a few modules but at first try I couldn't make them work: https://github.com/andreareginato/simple-oauth2 https://github.com/ciaranj/node-oauth

framp commented 9 years ago

I had to - and ended up using http.request.

Looks pretty straightforward btw: https://jawbone.com/up/developer/authentication