orcasgit / python-fitbit

Fitbit API Python Client Implementation
Other
623 stars 330 forks source link

Update api.py #168

Open unowhat opened 3 years ago

unowhat commented 3 years ago

The version of sleep endpoint is now 1.2 instead of 1 (with other endpoints inchanged). Using the old endpoints will not get the sleep stage correctly. Please see details on https://dev.fitbit.com/build/reference/web-api/sleep-v1/ https://dev.fitbit.com/build/reference/web-api/sleep/