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 AnswerThanks for pointing this out! We've updated the docs accordingly.
Best AnswerThis 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 Answer
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.
@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 Answer
Best Answer
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.
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 Answer
Best Answer