12-03-2015 20:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-03-2015 20:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I was developed using PHP.
I was successful in obtaining the access token.
I want to get the data of Fitbit.
When you request a request a URL by curl such as the following, how would should I use the access token.
https://api.fitbit.com/1/user/-/XXX/XXX/XXXX.json
Answered! Go to the Best Answer.
Accepted Solutions
12-03-2015 23:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-03-2015 23:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I've solved the problem myself .
I found a solution in the "Using OAuth 2.0" page of the Fitbit API.
use
Authorization: Bearer XXXX
Thank you.

12-03-2015 23:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-03-2015 23:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I've solved the problem myself .
I found a solution in the "Using OAuth 2.0" page of the Fitbit API.
use
Authorization: Bearer XXXX
Thank you.

12-06-2015 13:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-06-2015 13:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
DanC and I have both created OAuth2 wrappers to do this logic for you. It makes it easier to make the requests and all that you have to do is configure them.
Mine:
https://github.com/jmitchell38488/oauth2-fitbit
DanC:
01-06-2016 19:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-06-2016 19:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you for your cooperation.

