11-10-2014 11:12
11-10-2014 11:12
Hi everybody,
I've some problem to get param about water. I'm developing a python web application and I tried this code:
authd_client._COLLECTION_RESOURCE('water')
where 'authd_client' is my authenticate user. But unfortunately this code doesn't work for me. I read the API and "water" is a key-word of _COLLECTION_RESOURCE() so I really don't understand why it doesn't work.
File "/Users/FitBitApp/fitbit/api.py", line 84, in make_request raise HTTPNotFound(response) fitbit.exceptions.HTTPNotFound: <Response [404]>
thanks
Gabriele
02-21-2015 10:29
02-21-2015 10:29
Gabriel,
I'm so sorry for the late response. The method for getting water logs was broken. It has been fixed in the latest source at https://github.com/orcasgit/python-fitbit
You will want to call "authd_client.foods_log_water"
http://python-fitbit.readthedocs.org/en/latest/#fitbit.Fitbit._COLLECTION_RESOURCE