Retrieve all image files using Dropbox Core API

混江龙づ霸主 提交于 2019-12-11 12:41:27

问题


I am working on Dropbox Core API with Google App Engine (python). There seems to be some problems with Dropbox-python-sdk on GAE. Therefore, I have choose to use the Core APIs directly.

My app is trying to retrieve all image files from a user's dropbox (with file type permission). But I couldn't find a way to get all files without specifying the root/path (all the APIs stated here requires a specific file path)

Any idea?


回答1:


EDIT Dropbox actually recommends not automatically recursing via /metadata calls. (See https://www.dropbox.com/developers/core/bestpractices.)

There's no method to get a recursive list of files, so you would need to use /search to find files or /delta with no cursor to get the full list of files.

Could the Chooser be an option here (if you're just trying to let the user pick individual files)?



来源:https://stackoverflow.com/questions/18270357/retrieve-all-image-files-using-dropbox-core-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!