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

Please tell me how to use the Oauth 2.0 access token in PHP

ANSWERED

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

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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.

 

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

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.

 

Best Answer
0 Votes

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:

https://github.com/djchen/oauth2-fitbit

Best Answer

Thank you for your cooperation.

Best Answer
0 Votes