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

Error retrieving heart rate intraday data by filtering time

Hi,

"1/user/-/activities/heart/date/{date_str}/{date_str}/1min/time/{start_time}/{end_time}.json"

I'm trying to call above api but I got 

{"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}

but I can successfully call 

`1/user/-/activities/heart/date/today/1d.json`
and also I sure that I have allow the scopes activity and heartrate.

can someone tell what is the issue?
Best Answer
0 Votes
1 REPLY 1

Hi @DansonNg ,

Thanks for contacting us. 
It seems the second API is not an Intraday API. Developers might be able to call Web APIs without issues but still fail when calling Intraday APIs.

To access other Fitbit users' Intraday APIs, developers are required to submit an IssueTracker request.
Further information regarding access can be found here: https://dev.fitbit.com/build/reference/web-api/intraday/

If your request is approved, please share the ticket number with us for advanced troubleshooting. 

Regards,
Inca

 

Best Answer
0 Votes