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

Oauth2.0 authorization error

Hi I encountered a problem when implement access token requests. The error is following:

 

 {"errors":[{"errorType":"invalid_request","message":"Missing 'grant_type' parameter value. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}

 

I did include the 'grant_type' in my code, but the error still comes out

auth_data=urllib.urlencode({'client_id':CLIENT_ID})+"&"+urllib.urlencode({'grant_type' : "authorization_code",'redirect_uri' : REDIRECT_URL})+"&"+urllib.urlencode({'code' : auth_code})

 

Thanks for your kind advece in advance 😄

Best Answer
0 Votes
1 REPLY 1

Can you provide or capture the raw HTTP request and response?

 

You can use Runscope to do this for you: https://dev.fitbit.com/docs/help/#debugging-with-runscope

Best Answer
0 Votes