07-10-2024 01:49
07-10-2024 01:49
JSONObject json = new JSONObject();
json.put("clientId", CLIENT_ID);
json.put("grant_type", "authorization_code");
json.put("redirect_uri", REDIRECT_URI);
json.put("code", "auth code");
json.put("code_verifier", "verifier code");
Error on highlighted line, i am getting below error.
{"success":false,"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."}]}
07-10-2024 21:54
07-10-2024 21:54
Anyone can help?
07-10-2024 22:01
07-10-2024 22:01
@JohnFitbit can you please help. I will share complete code to you if you want
07-17-2024 23:36
07-17-2024 23:36
Can someone help on this?
07-23-2024 13:35
07-23-2024 13:35
(Moved to Web API forum.)
07-24-2024 06:58
07-24-2024 06:58
What programming language are you using? These body parameters should be a single string separated by the & symbol, for example
grant_type=authorization_code&code=<authorization_code>&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&code_verifier=<code_verifier_value>
Can you confirm this is being performed by your code?