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

how to android app

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 

Best Answer
0 Votes
4 REPLIES 4

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
0 Votes

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
0 Votes
I haven't asked for it in my program yet

So, an error occurred while checking if the normal data is coming to
the address.


https://api.fitbit.com/1/user/22BQ4C/activities/heart/date/today/1d.json

[image: image.png]
Best Answer
0 Votes

@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
0 Votes