05-26-2021 03:49
05-26-2021 03:49
Hello!
I try to get my heart rate data with an API call. In swagger or in the postman everything is alright, but the same process in the Flutter I don't get back my all data.
My request: https://api.fitbit.com/1/user/-/activities/heart/date/today/1d.json
And I get back only: activities-heart field and I need the activities-heart-intraday filed to.
How can I fix it?
05-27-2021 16:10
05-27-2021 16:10
Hi @EliaaaS,
Can you tell me if your application is "Server", "Client", or "Personal"? This matters because only the "Personal" application type will grant you immediate access to the Intraday Time Series endpoints for your data only. If your app is registered as "Server" or "Client", you'll need to request access to the intraday data.
Also, you're missing the detail-level parameter in your endpoint which is used to specify how granular you want the data to be returned to you. If you specify:
To see our documentation, please visit: https://dev.fitbit.com/build/reference/web-api/heart-rate/#get-heart-rate-intraday-time-series
I hope this helps!