cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Transition from Dropbox Datastore API to API v2

Transition from Dropbox Datastore API to API v2

Raheel S.
Explorer | Level 3

Okay, The dates coming close when the datastore api will get deprecated. 

I need to think of a good way to transition my iOS app that essentially uses Dropbox Datastores as a way to store "text" notes and their attachments and another table houses the "Tags". All strings.

I'd really like to know if anyone tried this transition, at this point, i can only think the obvious like:

- Store all note-records as text files. 

- use some kind of custom formatted schema where any additional note-data would be within the note-file itself.

 

Now one, big reason i used datastore api was that it had the "push" feature. I'd really like to know if there a good way to do that in API v2. 

Lastly, is there an ObjC API v2 lib? 

4 Replies 4

Re: Transition from Dropbox Datastore API to API v2

Greg-DB
Dropboxer

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:

- for client-side apps: https://www.dropbox.com/developers/documentation/http/documentation#documentation-files-list_folder-...

- for server-side apps: https://www.dropbox.com/developers/reference/webhooks

Finally, we don't currently have an official SDK for Objective-C for API v2 yet, but I'll send this along as a request.

Re: Transition from Dropbox Datastore API to API v2

Raheel S.
Explorer | Level 3

Hey Greg, good to see you here.

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 🙂 

Re: Transition from Dropbox Datastore API to API v2

Greg-DB
Dropboxer

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).

Re: Transition from Dropbox Datastore API to API v2

Greg-DB
Dropboxer

The official Objective-C SDK for API v2 has been released here:

https://github.com/dropbox/dropbox-sdk-obj-c

Poll
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?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Raheel S. Explorer | Level 3
What do Dropbox user levels mean?
Need more support?