cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out 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: 

DBRestClient and DBRestClientDelegate replacement in v2 Objective-C SDK

DBRestClient and DBRestClientDelegate replacement in v2 Objective-C SDK

DarioJG
Explorer | Level 4

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.

1 Accepted Solution

Accepted Solutions

Re: DBRestClient and DBRestClientDelegate replacement in v2 Objective-C SDK

Greg-DB
Dropboxer

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.

View solution in original post

1 Reply 1

Re: DBRestClient and DBRestClientDelegate replacement in v2 Objective-C SDK

Greg-DB
Dropboxer

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.

View solution in original post

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
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?