Hi Raheel, for the fist part of your post, it sounds like you're looking for some feedback from other developers in a similar situation, so hopefully any such developers reading can chime in.
Regarding the "push" feature of the old Datastore API, do you mean how you would sync changes when/as desired? If you're using files with API v2 as described as a replacement, the equivalent there would just be a matter of uploading the new version(s) of the relevant file(s) when necessary.
Alternatively, if you're referring to a way to get low-latency notification of changes, that is available in API v2, using either:
By "push", I mean, observing changes to anything in a datastore was so easy. Just add an observer and figure out according to the DBDatastoreStatus thing..
I know Sync API had those for a full folder..
My intention is to keep my local copy (in my preferred data structure) and make use of these notifications to add or delete data to my local store, using simple text files as a replacement of DBRecord. I don't intend to keep dropbox text files open locally.
Syncing was easy here as I didn't have to figure out "what changes were made", I jus received those DBRecord and I made the necessary changes.
If i'm correct, in APIv2 I'd have to manually look out for what kinda changes where made and get a list of those files.
Looks like a long road to transition, but can you think of a better way to use APIv2? Lets just say, I want to stick with dropbox 🙂
Thanks for clarifying! In that case, the longpoll or webhooks functionality I linked to is the right way to mimic this. (In fact, the Sync/Datastores SDK itself did just use longpolling to find out about changes quickly.) API v2 doesn't have the same sort of model that the Sync/Datastores SDK did though, as you mentioned, so your app should use /list_folder and /list_folder/continue to keep track of changes (which should be easier now that there are file IDs).
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?