A sample application which uses the Settings API OAuth component, and the Fitbit Web API to query sleep data.
- You must first register a Web Application on dev.fitbit.com to get an OAuth ID and secret. Configure the application as:
- OAuth 2.0 Application Type: Server
- Callback URL: https://app-settings.fitbitdevelopercontent.com/simple-redirect.html
-
Enter your OAuth 2.0 Client ID and Client Secret into
settings/index.jsx
-
After installing the project from Fitbit Studio, you need to login to the Fitbit Web API using the settings page within the Fitbit mobile application.
Fitbit mobile app > Ionic > Developer menu > your app > Settings
Read more in the Reference documentation.