Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

get_water() in python

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

Best Answer
0 Votes
1 REPLY 1

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

Best Answer
0 Votes