Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use AngularJS for Fitbit auth, and request data?

Hi, i am building an application using AngularJS (v. 1.4.7), and i want to acces to Firbit for request data of an user. I saw some examples to do that using PHP, but i want do it using only Angular. Is that possible, and somebody can tellme how do it?? Thanks.

Best Answer
0 Votes
1 REPLY 1

Hi @AkumA,

 

Fitbit uses OAuth 2.0, so you need to obtain consent from the user. This will result in an access token. You append this access token to XHR you make by adding an Authorization HTTP header.

 

For fully client-side web applications, use the OAuth 2.0 Implicit Grant Flow.

Best Answer
0 Votes