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

Best practices to get "everything since I last asked", w/re Activities

I've looked through all the API calls, and I'm not finding anything familiar for my needs-

 

On most services, you have the concept of "can I have what's new since 1:15:05 11/20/14" (Facebook, Instagram, any rails app), or the concept of "can I have what's new since object 5fa32b410c2" (Twitter, etc)

 

I'm only seeing two methods of retrieval --

The "give me what's 'recent'" which is confusing, since I don't know what "recent" really means - within the last hour? last day? since I last asked?  - this API always returns 0 elements

 

The other method "give me what happened on this day (week, month)" seems to be getting the same thing over & over.. If I want to just "see how many steps were taken since I last asked" - I'd have to ask "how many steps were taken today" and subtract "how many steps were taken today, that I already know about" which seems kind of strange..

 

Also, because of the time increments (day, month, year, etc), if the user hasn't launched the app in 5 weeks, I'd be having to make multiple calls with multiple time chunks.

 

TL;DR - what API do I call to just get what activities (biking, running, walking, or # steps) have occurred since I last asked

 

Best Answer
0 Votes
1 REPLY 1

We don't have functionality that will tell you what changed since last time you requested it.

Please feel free to file feature request: https://community.fitbit.com/t5/Feature-Requests/idb-p/features

And if it gets enough votes we will certainly implement it.

 

For now the closest thing I can think of that may help you to satisfy your needs is push notifications.

So you can subscribe to certain events that happened to user and you will be notified each time an event happened to user. Info is available at https://wiki.fitbit.com/display/API/Fitbit+Subscriptions+API

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes