10-27-2015 07:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-27-2015 07:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

- Labels:
-
JavaScript
-
OAuth 2.0
-
Subscriptions API
10-27-2015 10:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



10-27-2015 10:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

