Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to determine timestamp of last sync (not device-to

ANSWERED

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

Best Answer
1 BEST ANSWER

Accepted Solutions

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

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

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

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Thanks @GordonFitbit!. Appreciate it.

 

Jeff

 

Best Answer
0 Votes