cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

/delta from iOS API

/delta from iOS API

Lars P.5
New member | Level 1

There does not seem to be a way to restrict /delta API calls from the iOS SDK in the way that is possible from the REST API, i.e. I want deltas starting at such-and-such a path and below. I run across something saying it would be "added soon", but that was well over a year ago. Is it coming?

13 Replies 13

Re: /delta from iOS API

Steve M.
Dropboxer

Which SDK are you using?

If it's the Core SDK, you might be able to add the path_prefix parameter pretty easily yourself. For the Sync API, you can register a path observer on whatever path you want. (Underneath, the Sync API still retrieves the full set of changes via /delta, but it will only fire your observer for changes under the path you specify.)

Re: /delta from iOS API

Lars P.5
New member | Level 1

It's the iOS Core SDK. By "adding it pretty easily myself", you mean not using the methods exposed in the iOS SDK, but instead writing a wrapper and calling the REST API directly?

Re: /delta from iOS API

Steve M.
Dropboxer

I just mean editing the code for the iOS Core SDK.

Re: /delta from iOS API

Lars P.5
New member | Level 1

Is the source code available for the iOS SDK for editing?

Re: /delta from iOS API

Steve M.
Dropboxer

For the Core SDK, yes.

The download is here: https://www.dropbox.com/developers/core/sdks/ios

(Ninja edit: Sorry, you did already mention that you're using the Core SDK, so you're good.)

Re: /delta from iOS API

Lars P.5
New member | Level 1

Thanks. So that link brings me to the iOS SDK download, which of course I have downloaded and using in my project, hence the questions. But the SDK is just header files and a framework - no source where I can tweak the parameters passed and returned via the API. I apologize if I'm being dense.

Re: /delta from iOS API

Steve M.
Dropboxer

There should be a folder in the zip file called DropboxSDK. Within that folder, there's a folder called Classes. The code lives in there.

Specifically, loadDelta is in the file DBRestClient.m, and you should be able to add a new parameter there.

Re: /delta from iOS API

Lars P.5
New member | Level 1

I was being dense, thanks for your help.

Re: /delta from iOS API

Manikandan M.1
New member | Level 1

Hi Steve, There's no DBRestClient.m file and DropboxSdk only contains Header file(.h files alone). I'm also looking for above case. But I couldn't. Is there any way with Dropbox Core sdk?

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
    Manikandan M.1 New member | Level 1
  • User avatar
    Steve M. Dropboxer
What do Dropbox user levels mean?
Need more support?