01-06-2021
07:28
- last edited on
01-19-2021
13:07
by
Gordon-C
01-06-2021
07:28
- last edited on
01-19-2021
13:07
by
Gordon-C
It is possible to output the heart rate on a daily basis, but it is not possible to output the heart rate on a timed basis.
For example, it could look like this
curl -i -H "Authorization: Bearer <access token>" https://api.fitbit.com/1/user/-/activities/heart/date/2021-01-06/1d/1sec/time/15:00/15:05.json)
Result
{"errors":[{"errorType":"insufficient_permissions","message":"API client is not authorized by Fitbit to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
I'd like you to tell me what I'm doing wrong.
01-18-2021 18:54
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
01-18-2021 18:54
Have you got intra-day access?
Best Answer01-19-2021 13:10
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.
01-19-2021 13:10
Please don't post access tokens in the public forum. If a token is required, we will request it through a safe means. It looks like you are trying to query the intraday heart rate data. If you're querying your heart rate data, then set the application type = "personal". If you need other Fitbit user's heart rate data, you'll need to request access to the Intraday data here: https://dev.fitbit.com/build/reference/web-api/intraday-requests/.
Best Answer