You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
DarioJG
8 years agoExplorer | Level 4
DBRestClient and DBRestClientDelegate replacement in v2 Objective-C SDK
Hi,
In v1 API & SDK we used
DBClient: loadThumbnail, cancelFileLoad and deletePath and its delegate protocol DBRestClientDelegate
what are the v2 counterparts we should use to replace those two? (specially in the context of loading images thumbnails and deleting those files).
Thanks.
The API v2 Objective-C SDK works quite a bit differently than the API v1 iOS SDK, so I recommend looking through the readme file for the API v2 SDK first to get started. For example, the API v2 SDK doesn't use delegate methods like the v1 SDK did. It uses response blocks instead, that you set when you call the method.
To answer your specific questions, the equivalents would be the any of the getThumbnail methods, to get thumbnails for files, and the delete_ method, to delete any file or folder.
The API call methods returns DBTasks that you can call cancel on, to cancel any particular request.
- Greg-DBDropbox Staff
The API v2 Objective-C SDK works quite a bit differently than the API v1 iOS SDK, so I recommend looking through the readme file for the API v2 SDK first to get started. For example, the API v2 SDK doesn't use delegate methods like the v1 SDK did. It uses response blocks instead, that you set when you call the method.
To answer your specific questions, the equivalents would be the any of the getThumbnail methods, to get thumbnails for files, and the delete_ method, to delete any file or folder.
The API call methods returns DBTasks that you can call cancel on, to cancel any particular request.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
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 or Facebook.
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!