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
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
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.
Best Answer07-15-2016 09:57
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
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.
Best Answer07-16-2016 02:47
07-16-2016 02:47
Thank you!
looks like I've missed thus part of API.
Best Answer08-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?
Best Answer09-17-2018 16:27
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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?
Best Answer