12-04-2018 07:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-04-2018 07:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
i am very new to fit bit web api development so i apologize for the
I am a little confused on when user interaction with my app is required
when a server/subscription based app receives a fitbit notification that data is available, can the app reach out immediately to request the new information or does each request for data require my app to interact with the fitbit owner
Answered! Go to the Best Answer.

- Labels:
-
Subscriptions API
Accepted Solutions
12-07-2018 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



12-07-2018 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
the first interaction will be having the Fitbit user provide consent for your application to access their data. This is accomplished through OAuth 2 using the Authentication APIs. Once the user selects the scopes and consents to access, you should have access to their data by implementing the various endpoints.
For best practices we recommend implementing the Subscription API. The subscription API will notify your application when a user has new data in their Fitbit account to share so you don't have to keep polling the APIs looking for new data.. You will receive a webhook notification that provides the Fitbit user id and new data (Activity, Body/Weight, Sleep and Food) available. Afterwards, your application can execute the necessary API calls to get the new data for that specific user.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

12-07-2018 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



12-07-2018 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
the first interaction will be having the Fitbit user provide consent for your application to access their data. This is accomplished through OAuth 2 using the Authentication APIs. Once the user selects the scopes and consents to access, you should have access to their data by implementing the various endpoints.
For best practices we recommend implementing the Subscription API. The subscription API will notify your application when a user has new data in their Fitbit account to share so you don't have to keep polling the APIs looking for new data.. You will receive a webhook notification that provides the Fitbit user id and new data (Activity, Body/Weight, Sleep and Food) available. Afterwards, your application can execute the necessary API calls to get the new data for that specific user.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

12-18-2018 20:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-18-2018 20:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks alot i really appreciate you taking the time to reply

