03-08-2018
00:45
- last edited on
03-08-2018
11:24
by
SiddhiFitbit
03-08-2018
00:45
- last edited on
03-08-2018
11:24
by
SiddhiFitbit
I am trying to get an access token from refresh token.I got this error
send: b"POST /oauth2/token HTTP/1.1\r\n
User-Agent: python-requests/2.18.4\r\n
Accept-Encoding: g zip, deflate\r\n Accept: */*\r\n
Connection: keep-alive\r\n
authorization: Basic <BASE64 ENCODED client_id:client_secret>
Content-Type: "application/x-WWW-form-encoded\r\n Content-Length: 103\r\n\r\n"
send: b'grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>'
reply: 401
Internal Server Error: /fit_bit/RefAccessToken
and an exception I got
Received authorization header = Basic <BASE64 ENCODED client_id:client_secret>, received client encoded id = null.
I am following the this code https://github.com/magnific0/FitBit.py
Answered! Go to the Best Answer.
03-08-2018 11:23
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-08-2018 11:23
I think there might be an error in the authorization header you are providing. Your authorization header should be in the format: Base64 encoded "client_id:client secret". Can you verify that?
Best Answer03-08-2018 11:23
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-08-2018 11:23
I think there might be an error in the authorization header you are providing. Your authorization header should be in the format: Base64 encoded "client_id:client secret". Can you verify that?
Best Answer