简体   繁体   English

适用于iOS的Dropbox集成

[英]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? 是否有任何API方法可以深入了解dropbox的所有文件夹并查找特定类型的文件,如pdf或mp3或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. 或者是否有任何搜索API,我可以在其中传递我的搜索参数并要求API在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 我的任务是从dropbox加载我的应用程序中的所有歌曲,并使用以下方法实现它的真正痛苦

[[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. 我建议我的客户端为我们的应用程序设置一个文件夹,用户将放弃这些歌曲,但他已经拒绝了它,并希望访问整个Dropbox并过滤其中的所有音乐文件。 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: 您可以直接使用Dropbox Core API进行搜索:

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

Dropbox iOS Sync SDK doesn't support all features of Dropbox Core API. Dropbox iOS Sync SDK不支持Dropbox Core API的所有功能。

https://github.com/AbbieVys/WrapperDropBox https://github.com/AbbieVys/WrapperDropBox

Useful wrapper class for integrating DropBox in IOS 用于在IOS中集成DropBox的有用包装类

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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