08-11-2014 12:05
08-11-2014 12:05
Hi, a few weeks ago I in obtaining data about users began to return only zero values.
I need to get actual user weight.
Request URL: http://api.fitbit.com/1/user/-/body/date/2014-08-10.json
Response: {"body":{"bicep":0,"bmi":0,"calf":0,"chest":0,"fat":0,"forearm":0,"hips":0,"neck":0,"thigh":0,"waist":0,"weight":0},"goals":{"weight":80}}
In my profil on Fitbit the weight is set to non-zero value, but from API I receive zero value.
I want to ask, if there was samo API changes a I need to change my call, or it there is something wrong. Or is there better way how to get user weight? Please could you help me?
Thanks, Petr.
08-11-2014 13:39 - edited 08-11-2014 13:39
08-11-2014 13:39 - edited 08-11-2014 13:39
Please sent your used ID to my in private message. I'll check it out.
08-13-2014 07:56
08-13-2014 07:56
Ok, so for the date that you check your weight you don't have any entries. The API is only able to return logged or measured by ARIA weight for particular date. If you don't enter any weight for that date you will get 0.
If you want to know your up to date weight for today you may also use /1/user/-/profile.json endpoint which will return to you calculated weight for current day regardless to the fact if you did not log any weight for current date or not. See https://wiki.fitbit.com/display/API/API-Get-User-Info for more details.
03-05-2016 19:03 - edited 03-05-2016 19:06
03-05-2016 19:03 - edited 03-05-2016 19:06
Hi @ibahdanau,
I followed the same steps you mentioned about using the /1/user/-/profile.json endpoint for getting weight from user's profile. I still get weight as 0.
Please help!
TIA