12-03-2015 20:34
12-03-2015 20:34
In the proces of upgrading the app using the latest API and I noticed a small typo in your documentation
https://dev.fitbit.com/docs/body/#get-weight-logs
For retrieving weight it says:
GET https://api.fitbit.com/1/user/[user-id]/body/log/weight/[base-date]/[end-date].json
this should be (the date is missing!)
GET https://api.fitbit.com/1/user/[user-id]/body/log/weight/date/[base-date]/[end-date].json
Also in your documentation you say "date The date in the format YYYY-mm-dd."
It should be "date The date in the format yyyy-MM-dd."
Small mistakes but crucial to get it to work.
cheers Peter
Answered! Go to the Best Answer.
Best Answer12-04-2015 18:18
12-04-2015 18:18
Thanks for pointing this out! We've updated the docs accordingly.
Best Answer12-04-2015 18:18
12-04-2015 18:18
Thanks for pointing this out! We've updated the docs accordingly.
Best Answer01-25-2018 21:43
01-25-2018 21:43
Hi, I am using this api, but I understand the end-date should be in form 1m, 3m, 1y etc, but only 1m works?
Best Answer01-30-2018 00:19
01-30-2018 00:19
This still dont work?
I used: https://api.fitbit.com/1/user/-/body/log/weight/date/2018-01-30/2018-01-01.json
and it fails, the only version that works is:
https://api.fitbit.com/1/user/-/body/log/weight/date/2018-01-30/1m.json
- and even trying to use 3m etc does not work!
Best Answer01-31-2018 16:54
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.
01-31-2018 16:54
@2mR the url seems incorrect to me
https://api.fitbit.com/1/user/-/body/log/weight/date/2018-01-30/2018-01-01.json
in this url
start date: 2018-01-30
end date: 2018-01-01
which kind-a makes no sense.
Best Answer01-31-2018 22:15
01-31-2018 22:15
Best Answer02-08-2018 15:42
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.
02-08-2018 15:42
the only supported formats are: 1d,7d,1w,1m.
When you enter start date and end date, the difference between start date and end date can't be more than 31 days. Please see more details at our documentation here: https://dev.fitbit.com/build/reference/web-api/body/
Best Answer02-10-2018 08:37
02-10-2018 08:37
Best Answer