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

Proof-of-Concept for API

I amnew to fitbit API, and get the following error:

 

{
"errors": [
{
"errorType": "invalid_client",
"message": "Incorrect authorization method. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
}
],
"success": false
}

 

I am able to successfully get the access token, and I am setting the header Authorization to:

 

bearers eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzSlk4TFAiLCJhdWQiOiIyMkNWWVciLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJ3aHIgd251dCB3cHJvIHdzbGUgd3dlaSB3c29jIHdhY3Qgd3NldCB3bG9jIiwiZXhwIjoxNTIxODcwMDM1LCJpYXQiOjE1MjE4NDEyMzV9.9xQ-QqDt-j81ZGxc6AlVmIw1DsxAc0NuF9k260BHofw

 

Any idea what I am doing wrong?

 

The get URL is https://api.fitbit.com/1/activities.json

 

Best Answer
0 Votes
0 REPLIES 0