cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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

Steve M.
Dropbox Staff

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

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?

Steve M.
Dropbox Staff

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

Lars P.5
New member | Level 1

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

Steve M.
Dropbox Staff

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

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.

Steve M.
Dropbox Staff

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.

Lars P.5
New member | Level 1

I was being dense, thanks for your help.

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?

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Manikandan M.1 New member | Level 1
  • User avatar
    Steve M. Dropbox Staff
What do Dropbox user levels mean?