12-08-2017 00:36
12-08-2017 00:36
Story
I would like to be able to create an app on the Ionic watch that shows the sleep statistics like they are shown on the mobile Fitbit application, ofcourse in a more simplistic way.
I have found that the Web Api is providing the information I need in the sleep section. Although my problem is getting access to the Web Api.
Steps
Question
Is there an example project/page that explains me exactly how I would be able to use the Web Api from the Ionic watch so I could receive personal data?
Thanks for your help and time!
Kind regards,
Bruty
12-13-2017 11:36
12-13-2017 11:36
The callback URL should be https://app-settings.fitbitdevelopercontent.com/simple-redirect.html .
Since, as you wrote, you didn't figure out the settings part of it, the connection to the Web API won't work: the user (in that case, you), needs to give access to the part of the account data your application wants to use, and it's in the companion app settings. If you follow the Fitbit mobile app > Ionic > Developer menu > your app > Settings, you'll find the Login link (if you used the same code as in the SDK-Oauth example).