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.
Best Answer
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.
Calorie data was removed from lifetime stats. We will update the documentation.
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.