We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Lars P.5
11 years agoNew member | Level 1
/delta from iOS API
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
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
Which SDK are you using?
If it's the Core SDK, you might be able to add the
path_prefixparameter 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.511 years agoNew 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.11 years ago
Dropbox Staff
I just mean editing the code for the iOS Core SDK.
- Lars P.511 years agoNew member | Level 1
Is the source code available for the iOS SDK for editing?
- Steve M.11 years ago
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.511 years agoNew 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.11 years ago
Dropbox Staff
There should be a folder in the zip file called
DropboxSDK. Within that folder, there's a folder calledClasses. The code lives in there.Specifically,
loadDeltais in the fileDBRestClient.m, and you should be able to add a new parameter there. - Lars P.511 years agoNew member | Level 1
I was being dense, thanks for your help.
- Manikandan M.111 years agoNew 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?
- Steve M.11 years ago
Dropbox Staff
From https://www.dropbox.com/developers/core/sdks/ios, download the zip file. Inside the zip file, there's a folder called
DropboxSDK. Inside that folder is a folder calledClasses, and you'll findDBRestClient.min there.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!