04-21-2022 18:50
04-21-2022 18:50
Hi,
We build clinical research applications, and often have discrepancies between what a user's Fitbit App displays vs. what we receive from the Web API.
The Devices endpoint almost comes to the rescue, but the documentation says that the the lastSyncTime is "representing the last time the device was sync'd with the Fitbit mobile application."
I need the timestamp of when the application was synced to the server, not the time when the device synced to the mobile app.
Any ideas? This would also help us detect participants that haven't synced to the server for a certain number of days, so we can reach out for troubleshooting, etc.
Thanks!
Jeff
Answered! Go to the Best Answer.
04-22-2022 11:56
04-22-2022 11:56
Hi @JeffCohen
The Get Devices endpoint is going to return information about the devices paired with the user's account and when they synced their device to the mobile application. The best way to find out if a user has entered data through the web application is to implement the Subscription endpoints. See https://dev.fitbit.com/build/reference/web-api/developer-guide/using-subscriptions/.
Subscriptions will notified your application when the user has new data that was entered through the web application, mobile application, device sync and 3rd party integrations (e.g. Strava). The notifications should arrive in a few moments after the new data has been received in our data servers.
Best,
Gordon
04-22-2022 11:56
04-22-2022 11:56
Hi @JeffCohen
The Get Devices endpoint is going to return information about the devices paired with the user's account and when they synced their device to the mobile application. The best way to find out if a user has entered data through the web application is to implement the Subscription endpoints. See https://dev.fitbit.com/build/reference/web-api/developer-guide/using-subscriptions/.
Subscriptions will notified your application when the user has new data that was entered through the web application, mobile application, device sync and 3rd party integrations (e.g. Strava). The notifications should arrive in a few moments after the new data has been received in our data servers.
Best,
Gordon
04-23-2022 09:24