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

Activity post problem

ANSWERED

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?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The Fitbit Web API always assumes metric units. If you want to use other unit systems, check out the localization documentation.

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

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?

Best Answer

The Fitbit Web API always assumes metric units. If you want to use other unit systems, check out the localization documentation.

Best Answer
0 Votes

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 Answer
0 Votes

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
0 Votes