简体   繁体   中英

Dropbox integration for iOS

Is there any API method by which I can dig into all the folders of dropbox and look for a particular kind of files like a pdf or mp3 or txt? Or is there any search API in which I can pass my search parameter and ask the API to look for it every folder of dropbox. My task is to load all songs in my app from dropbox and its a real pain doing it by using the following method

[[self restClient] loadMetadata:@"/"];   

and then keep on checking if the metadata is a directory or a file and if its a file then look for its extension, and if its a directory then again dig into it which can further contain more directories. I have suggested my client to have one folder for our app in which user will drop the songs but he has already denied it and wants to access whole dropbox and filter all the music files in it. I just want to get assured that its not possible before telling my client that its not possible. and if its possible then please throw some light on the procedure.

You can use Dropbox Core API directly for search:

https://www.dropbox.com/developers/reference/api#search

Dropbox iOS Sync SDK doesn't support all features of Dropbox Core API.

https://github.com/AbbieVys/WrapperDropBox

Useful wrapper class for integrating DropBox in IOS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM