02-17-2023 11:16
02-17-2023 11:16
Hello,
I have a client_id and client_secret associated with my account. I am trying to write a script to get intraday data from some of the users registered under my client id.
I am using this URL:
https://www.fitbit.com/oauth2/authorize?client_id=<client_id>&prompt=consent&redirect_uri=<redirect_url>&response_type=code&scope=activity+heartrate+location+nutrition+profile+settings+sleep+social+weight&state02-22-2023 07:43
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.
02-22-2023 07:43
Hi @strmng
Would you please what you are pulling out of the redirect URL as the authorization code? If the redirect is
https://myapp.com/callback?code=d62d6f5bdc13df79d9a5f#_=_
the authorization code is in bold: d62d6f5bdc13df79d9a5f
If this is correct in your use case, please provide the endpoint and headers you're using to exchange the authorization code for the access and refresh tokens.
Best Answer