We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
vangdoan
10 years agoNew member | Level 2
[iOS SDK]Replace Sync API by .....
Hi you, I have a issue about dropbox api v2. Before I use db api v1, I used 2 api key (one for upload/download <DBSession>, one for sync data<DBAccountManager>) and run parallel. But when migrate...
Greg-DB
Dropbox Community Moderator
10 years agoThanks! It looks like you were using both the Core SDK and the Sync SDK. They both use API v1, so you'll want to replace both of them with a single API v2 SDK.
The new API v2 SDKs are built more like the Core SDKs, giving you direct access to the API calls for uploading and downloading files, among other operations. You'll need to implement whatever sync functionality you need on top of that.
You can find all of the information on using the Dropbox API v2 Objective-C SDK here:
https://github.com/dropbox/dropbox-sdk-obj-c
The new API v2 SDKs are built more like the Core SDKs, giving you direct access to the API calls for uploading and downloading files, among other operations. You'll need to implement whatever sync functionality you need on top of that.
You can find all of the information on using the Dropbox API v2 Objective-C SDK here:
https://github.com/dropbox/dropbox-sdk-obj-c
Vang G.
10 years agoExplorer | Level 3
Hi Greg K,
You mean on Dropbox V2 don't support api same addObserver (will notify when have any change on dropbox). :(
Thank,
Vang Doan
- Greg-DB10 years ago
Dropbox Community Moderator
That's correct, the API v2 SDKs don't offer the exact same interface/functionality as the Sync SDKs did.
You can replicate that functionality though, using listFolderLongpoll. That enables low-latency notification of changes in the account.
- Vang G.10 years agoExplorer | Level 3
Hi Greg K,
Thank you so much for this supporting :).
Thanks,
Vang Doan
- Vang G.10 years agoExplorer | Level 3
Hi Greg K,
I have issue, please help me :)
Please image below :
https://www.dropbox.com/s/7wgyh64a1oa68sx/Screen%20Shot%202016-10-27%20at%204.15.37%20PM.png?dl=0
As you saw, one folder I create normally and one folder is created by SyncAPI.
Problem: when I use dropbox api v2
[fileRoutes listFolder:kDropboxSyncFolder recursive:@(YES) includeMediaInfo:@(NO) includeDeleted:@(NO) includeHasExplicitSharedMembers:@(NO)]
Result: - with normal folder (above) response return only one folder
- with sync folder (below) reponse return all folder (include subfolders).
You have anyway can create a sync folder? because I need uniform for new app and older app.
Please help me :)
Thanks,
Vang
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!