03-11-2015 14:28
03-11-2015 14:28
On my test account all I can get is en_US. I've tried putting in the Accept-Language header with en_GB and nothing but all I get is en_US.
Any ideas?
Answered! Go to the Best Answer.
03-11-2015 16:48
03-11-2015 16:48
If you don't include an Accept-Language header, the API defaults to metric.
03-11-2015 16:48
03-11-2015 16:48
If you don't include an Accept-Language header, the API defaults to metric.
03-14-2015 16:15
03-14-2015 16:15
Super derp! I was confused by the user's en_US. Thanks!
08-04-2015 09:33 - last edited on 08-04-2015 10:33 by JeremiahFitbit
08-04-2015 09:33 - last edited on 08-04-2015 10:33 by JeremiahFitbit
Hello,
Sorry for asking a most basic question: how do I add the accept language heder for en-US in the script below (I'm a total novice, somehow got this to work, but now know no further):
Thanks a bunch!
[Moderator Edit: Please do not post large portions of code. Use a GitHub gist, Pastebin, or similar and link if necessary.]
08-04-2015 10:31
08-04-2015 10:31
@novikov: We are very happy to help you with issues related to the Fitbit API, but we're not here to debug your application. You should consult your programming language's or framework's documentation for adding HTTP headers.
02-19-2016 14:57 - edited 02-19-2016 14:58
02-19-2016 14:57 - edited 02-19-2016 14:58
For the Get Activity Type api, the documentation shows Accept-Locale instead of Accept-Language ...
Accept-Locale optional The measurement unit system to use for response values.
This is different than in most places, where that is the description for Accept-Language, as in the doc for the
Get Daily Activity Summary api where the doc shows:
Accept-Locale optional The locale to use for response values.
Accept-Language optional The measurement unit system to use for response values
Is this a typo in the docs? What is Accept-Locale supposed to do? I would expect it to localize text, not units of measurements.