05-04-2020
01:26
- last edited on
05-05-2020
15:02
by
JohnFitbit
05-04-2020
01:26
- last edited on
05-05-2020
15:02
by
JohnFitbit
my client id [Redacted]
https://api.fitbit.com/1/user/22BQ4C/activities/heart/date/today/1d.json
>
{"errors":[{"errorType":"system","fieldName":"n/a","message":"Authorization Error: Invalid authorization token type"}],"success":false}
I wish I could come up with a normal heart rate data value
Can you help me only once?
Best Answer
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.
Hi @8022,
Welcome to the forums!
I have an idea of why you are seeing the invalid authorization token type error. Before I jump into conclusions, can you please PM me your complete HTTP request? I need to be able to see the endpoint you're calling, headers, and body (if any).
I hope to hear from you soon. Let me know if you have any additional questions in the meantime.
Best Answer
Best Answer
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.
@8022 Can you clarify where you are making your HTTP request?
The error you are seeing is typically associated to bad syntax in your authorization header when making the HTTP request. See 401 Unauthorized for more information.
| system | Authorization error: invalid authorization token type | The Authorization header must be set to Bearer, followed by a space, then the user's access token. See documentation for making requests. |
For documentation on how to make an HTTP request, please see here.
I hope this helps. Let me know if you have any additional questions.
Best Answer