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

Fitbit Wep API - Flutter

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?

Best Answer
0 Votes
1 REPLY 1

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:

  • heart/date/today/1d/1sec = you'll be returned with intraday data in 1-second detail level
  • heart/date/today/1d/1min = you'll be returned with intraday data in 1-minute detail level

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!

Best Answer
0 Votes