07-10-2024 01:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-10-2024 01:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-10-2024 21:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Anyone can help?

07-10-2024 22:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-10-2024 22:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@JohnFitbit can you please help. I will share complete code to you if you want

07-17-2024 23:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-17-2024 23:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Can someone help on this?

07-23-2024 13:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-23-2024 13:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
(Moved to Web API forum.)
Gondwana Software

07-24-2024 06:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



07-24-2024 06:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

