07-15-2016 08:42
07-15-2016 08:42
Hi guys,
We are using Fitbit API to get Daily Activity Summary, Sleep data, etc. Sometimes our users does not synchronize their mobile Fitbit apps with Fitbit server and complain about data mismatch. We'd like to display notification about last sync timestamp.
From API documentation I don't see any possibility to implement such feature straightforward and think about workarounds.
We've noticed that DailySummary data includes steps count only in case when device was synchronized this day. In this case we can use DailySummary date as approximate sync timestamp.
Please let me know if you see better way to get sync date or think that approach described above is bad idea.
Thank You in advance,
Yauhen
Answered! Go to the Best Answer.
07-15-2016 09:57
07-15-2016 09:57
@Hansovovich Have you considered the devices endpoint? You'll be able to see last sync time of the device for the user.
07-15-2016 09:57
07-15-2016 09:57
@Hansovovich Have you considered the devices endpoint? You'll be able to see last sync time of the device for the user.
07-16-2016 02:47
07-16-2016 02:47
Thank you!
looks like I've missed thus part of API.
08-21-2018 22:34
08-21-2018 22:34
But this API does not return time zone offset with lastSysctime parameter then how we can convert it to local time?
09-17-2018 16:27
09-17-2018 16:27
Hi @Bajrang. You can get the offset time from the Profile endpoint, /1/user/-/profile.json. This endpoint will return the offsetFromUTCMilllis. Will that help you?