我是Android平台的初学者..我正在使用dropbox for android api将所有图像从用户dropbox帐户下载到loacal设备。我已经关注了dropbox提供的演示应用程序,我得到了如何下载图像的方法。但现在我想在我的应用程序中从dropbox和priview获取所有图像。任何人都可以帮助解决这个问题。
答案 0 :(得分:1)
有一些第三方应用,例如dropsync,可供您使用。
答案 1 :(得分:1)
遵循此文档https://www.dropbox.com/developers/core/docs#metadata
如果您向此地址发送GET请求:https://api.dropbox.com/1/metadata/<root>/<path>
您应该获得所有文件的JSON响应。
{
"size": "0 bytes",
"hash": "37eb1ba1849d4b0fb0b28caf7ef3af52",
"bytes": 0,
"thumb_exists": false,
"rev": "714f029684fe",
"modified": "Wed, 27 Apr 2011 22:18:51 +0000",
"path": "/Public",
"is_dir": true,
"icon": "folder_public",
"root": "dropbox",
"contents": [
{
"size": "0 bytes",
"rev": "35c1f029684fe",
"thumb_exists": false,
"bytes": 0,
"modified": "Mon, 18 Jul 2011 20:13:43 +0000",
"client_mtime": "Wed, 20 Apr 2011 16:20:19 +0000",
"path": "/Public/latest.txt",
"is_dir": false,
"icon": "page_white_text",
"root": "dropbox",
"mime_type": "text/plain",
"revision": 220191
},
{
"size": "0 bytes",
"rev": "35c1f029684fe",
"thumb_exists": false,
"bytes": 0,
"modified": "Mon, 18 Jul 2011 20:13:43 +0000",
"client_mtime": "Wed, 20 Apr 2011 16:20:19 +0000",
"path": "/Public/latest.txt",
"is_dir": false,
"icon": "page_white_text",
"root": "dropbox",
"mime_type": "text/plain",
"revision": 220191
}
],
"revision": 29007
}
要下载该文件,请查看此地址https://www.dropbox.com/developers/core/docs#files-GET