05-03-2020 17:26
05-03-2020 17:26
I want a way to get fitbit heart rate data from my app
Is there a guide?
I am using kotlin and android studio.
help me
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?
05-05-2020 15:10
05-05-2020 15:10
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.
05-05-2020 17:31
05-05-2020 17:31
05-05-2020 18:40
05-05-2020 18:40
@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.