01-26-2017 05:42 - edited 01-26-2017 05:45
01-26-2017 05:42 - edited 01-26-2017 05:45
We are fetching lifetime stats with the following api
https://api.fitbit.com/1/user/[user-id]/activities.json
We are getting total lifetime stats for distance, floors and steps but the value for caloriesOut is always -1.
Like this
lifetime: { total: { activeScore:-1 caloriesOut:-1 distance:238.17 floors:979 steps:331540 } }
It should actually be like this
"lifetime":{ "total":{ "caloriesOut":60223, "distance":2711.62, "floors":2500, "steps":203300 }
}
As shown here https://dev.fitbit.com/docs/activity/#get-lifetime-stats
We only need caloriesOut, distance, floors and steps. Some help would be much appreciated.
Thank you.
Answered! Go to the Best Answer.
01-26-2017 10:46
01-26-2017 10:46
Calorie data was removed from lifetime stats. We will update the documentation.
01-26-2017 10:46
01-26-2017 10:46
Calorie data was removed from lifetime stats. We will update the documentation.