11-14-2015 22:04 - edited 11-15-2015 05:40
11-14-2015 22:04 - edited 11-15-2015 05:40
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 😄
11-16-2015 11:42
11-16-2015 11:42
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