03-28-2019 15:19
03-28-2019 15:19
Hi, I am using a FitBit Versa and have created a custom watch face. But I would love to see my latest sleep there as well. Is there an api to get the latest sleep info to use?
Answered! Go to the Best Answer.
03-28-2019 15:22
03-28-2019 15:22
There isn't a Device API for it, but you can fetch the data from the Web API.
You can see a full example here: https://github.com/Fitbit/sdk-oauth
03-28-2019 15:22
03-28-2019 15:22
There isn't a Device API for it, but you can fetch the data from the Web API.
You can see a full example here: https://github.com/Fitbit/sdk-oauth
03-29-2019 08:07 - edited 03-29-2019 08:41
03-29-2019 08:07 - edited 03-29-2019 08:41
Thanks @JonFitbit it works great in the simulator. But when I deploy it to my phone and go to settings and press login Safari opens up and ask me to open FitBit, press ok and ends up back in fitbit app. But I do not see the data in my watch like I do on the simulator. Any ideas?
Edit: Nevermind. I forgot to add permissions to access internet in my package.json 😛