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

Trying to use web api

Okay, so here's the deal. I login into API successfully with Python, but I can't fetch data cause it says 

 

{"errors":[{"errorType":"system","fieldName":"n/a","message":"Authorization Error: Invalid authorization token type"}],"success":false}'

Best Answer
0 Votes
1 REPLY 1

Hi @Bussung 

 

That error message typically occurs when you are trying to query a Fitbit user's data and this user has not authorized your application, or you're trying to query an endpoint the user didn't authorize with your application.

 

Would you please have a user go through your OAuth flow and grant consent to share their data with your application?  A demonstration of this process can be found in dev.fitbit.com by using the OAuth 2.0 tutorial tool

 

OAuth 2.0 Tutorial - Access Point.png

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes