Closed dwoffinden closed 3 years ago
Feel free to open an issue for the TODO. I will go ahead and merge these changes.
Thanks! I'll try to dig into some official documentation on the newer API, for now this seems to work well :)
I implemented the sleep segment API support on top of Woyken's fork recently, it wasn't too hard (although I would much prefer to use this repo as is). The REST side documentation for the sleep segment changes are at https://developers.google.com/fit/improvements and https://developers.google.com/fit/datatypes/sleep.
I implemented the sleep segment API support on top of Woyken's fork recently, it wasn't too hard (although I would much prefer to use this repo as is). The REST side documentation for the sleep segment changes are at https://developers.google.com/fit/improvements and https://developers.google.com/fit/datatypes/sleep.
Happy to review and work to get your changes merged if you could open a PR? Thank you 😁
Old: https://dev.fitbit.com/build/reference/web-api/sleep-v1 New: https://dev.fitbit.com/build/reference/web-api/sleep
Workaround to enable it: https://github.com/orcasgit/python-fitbit/issues/128
TODO: switch to the new GFit sleep segment API: https://developers.google.com/android/reference/com/google/android/gms/fitness/data/SleepStages