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

Authorization code invalid error

ANSWERED

What should I do when I run Postman, I keep getting errors like the following?

1.PNG

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Try this instead

 

Endpoint: https://api.fitbit.com/oauth2/token

Headers: authorization and content-type

Under the "Body" tab:  provide all of the parameters (client_id, code, grant_type, redirect_uri)

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

Hi @박지은 

 

Would you please provide the endpoint and parameters that you're executing when the error occurs?

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

b.PNG

 

c.PNG

The picture above is a parameter, and the header is below.
I copied this after watching some YouTube video, is there anything wrong?

Best Answer

Try this instead

 

Endpoint: https://api.fitbit.com/oauth2/token

Headers: authorization and content-type

Under the "Body" tab:  provide all of the parameters (client_id, code, grant_type, redirect_uri)

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes