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.
12-04-2015 18:18
12-04-2015 18:18
Thanks for pointing this out! We've updated the docs accordingly.
12-04-2015 18:18
12-04-2015 18:18
Thanks for pointing this out! We've updated the docs accordingly.
01-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?
01-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!
01-31-2018 16:54
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.
01-31-2018 22:15
01-31-2018 22:15
02-08-2018 15:42
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/
02-10-2018 08:37
02-10-2018 08:37