Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Fitbit subscription API #88

Open
blootsvoets opened this issue Sep 8, 2021 · 2 comments
Open

Implement Fitbit subscription API #88

blootsvoets opened this issue Sep 8, 2021 · 2 comments

Comments

@blootsvoets
Copy link
Member

blootsvoets commented Sep 8, 2021

Right now, the only way to ensure that all Fitbit data of a user is present up to the current date is by resetting a user. If we implement the Fitbit subscription API, the probability of missing data would be decreased a lot, since Fitbit will inform us if something in history changes. Since the Fitbit connector itself will not always run it should be a separate always-on component that acts as a queue for the Fitbit messages. For example, we could use a simple Jersey web app with a Redis backend.

@yatharthranjan
Copy link
Member

Do you think the RADAR-PushEndpoint would be the appropriate place for this? It has the same usecase as this and It already uses redis to store offsets for garmin backfill requests which can be reused for fitbit.

@SrividyaTR
Copy link

@blootsvoets This was also the recommendation from fitbit support. I include here the recommendation from fitbit support. "The Subscriptions API would be an ideal solution for your use case. By using a webhook notifications to be alerted of when new data is available, your application can extract the data near real time. If the Fitbit user decides to manually update their sleep log after you've already pulled the data, you'll receive another webhook notification letting you know that the data changed. Thats when your application calls the sleep API again to see what data changed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants