04-08-2016 09:11
04-08-2016 09:11
I am trying to post walking but the actual values posted are different than the values passed. The documentation doesn't explain why this is. In the post parameters I am passing a distance=6, steps=10000, and durationMillis=7200000. What gets posted is: steps=8620, distance = 3.73 miles. Can someone please explain what is going on?
Answered! Go to the Best Answer.
Best Answer04-08-2016 10:17
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.
04-08-2016 10:17
The Fitbit Web API always assumes metric units. If you want to use other unit systems, check out the localization documentation.
Best Answer04-08-2016 09:32
04-08-2016 09:32
6km is 3.7miles
So I guess you're posting in metric units (if not specified I think the API guesses this from the language), but displaying in imperial?
04-08-2016 10:17
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.
04-08-2016 10:17
The Fitbit Web API always assumes metric units. If you want to use other unit systems, check out the localization documentation.
Best Answer04-08-2016 12:40
04-08-2016 12:40
Yeah unfortunately the documentation just tells you that you need to Accept-Header=en_Us but doesn't tell you how to do it or where to do it.
Best Answer04-08-2016 13:23
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.
04-08-2016 13:23
Headers are a part of every HTTP request. You should consult the documentation for the HTTP library you're using on how to add a header.
Best Answer