03-30-2018
06:20
- last edited on
04-02-2018
15:02
by
SiddhiFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-30-2018
06:20
- last edited on
04-02-2018
15:02
by
SiddhiFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I got the authorization code by following steps on
https://dev.fitbit.com/build/reference/web-api/oauth2
But when I try to fetch access token , i get below error
{
}
I have tried multiple times (hurl via https://dev.fitbit.com/apps/oauthinteractivetutorial, chrome ARC etc)
But neither worked.
Can somebody help.
I had filled in all params as given at,
https://dev.fitbit.com/build/reference/web-api/oauth2/#access-token-request
03-30-2018 06:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-30-2018 06:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
grant_type for revoke access token is refresh token I think your refresh token is not valid

04-02-2018 15:13 - edited 04-02-2018 15:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-02-2018 15:13 - edited 04-02-2018 15:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The response indicates that there is an error in the `code` request parameter provided. Can you confirm that you are providing the correct request parameters? You can use the authorization code to get an access token only once. If you have used it already; you will need to go back a step and generate a new authorization code. The oauth2 interactive tutorial should provide you with a sample curl statements at each step.
P.S. I have redacted the authorization code from your post. Please refrain from sharing sensitive information in the community forum

