检索公共Dropbox文件夹的内容? [英] Retrieve contents of a public Dropbox folder?

查看:73
本文介绍了检索公共Dropbox文件夹的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以检索公共Dropbox文件夹的内容列表(最好在PHP中)?这是Dropbox中公共文件的URL:

Is there a way to retrieve a list of the contents of a public Dropbox folder (preferably in PHP)? This is what a URL to a public file in Dropbox looks like:

http://dl.dropbox.com/u/1234567/publikPholder/textytext.txt

一个人会认为跳到URL的目录一级...

One would think that jumping up one level to the directory in the URL...

http://dl.dropbox.com/u/1234567/publikPholder/

...将显示所有公共文件。不。只是404。

...would show all the public files. Nope. Nothing but a 404.

推荐答案

看起来像此库非常完整(尽管我自己还没有使用过),并且可能和(post-auth)一样简单:

Looks like this library is pretty complete (although I haven't used it myself), and is probably as simple as (post-auth):

$info = $dropbox->getMetaData('Public', true);
print_r($info['contents']);

这篇关于检索公共Dropbox文件夹的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆