仅限客户的Dropbox访问权限 [英] Client-only Dropbox access

查看:122
本文介绍了仅限客户的Dropbox访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个实用程序,该实用程序登录到用户的Dropbox帐户并在浏览器中显示那些文件(带有一些额外的格式等)。我想只使用没有任何服务器端代码的客户端技术来做到这一点。这可能吗?

I am trying to write an utility that logs into the user's Dropbox account and displays the files there (with some additional formatting, etc) in a browser. I would like to do this with only client-side technologies without any server-side code. Is this possible?

我发现了这个: http://code.google.com/p/dropbox-js/ - 尚未尝试过。它没有太多关于如何开始的文档。还有其他选择吗?

I found this: http://code.google.com/p/dropbox-js/ - haven't tried it yet. It doesn't have much documentation on how to get started. Any other alternatives?

推荐答案

Chooser API不允许您将自定义格式应用于文件。

The Chooser API will not allow you to apply custom formatting to files.

如果要显示用户的整个Dropbox,请创建一个具有Full Dropbox访问权限的应用程序,并使用 dropbox.js 来读取用户的Dropbox。

If you want to display the user's entire Dropbox, create an application with Full Dropbox access, and use dropbox.js to read the user's Dropbox.

这将指导您设置应用程序: https://github.com/dropbox/dropbox-js/blob/master/doc/getting_started.md

This walks you through setting up your application: https://github.com/dropbox/dropbox-js/blob/master/doc/getting_started.md

这个特定的片段(列出目录的内容)与您最相关: https://github.com/dropbox/dropbox-js/blob/master/doc/getting_started.md#list -a-directorys-contents

This particular snippet (List a Directory's Contents) is most relevant to you: https://github.com/dropbox/dropbox-js/blob/master/doc/getting_started.md#list-a-directorys-contents

readdir docume ntation: http://coffeedoc.info /github/dropbox/dropbox-js/master/classes/Dropbox/Client.html#readdir-instance

readdir documentation: http://coffeedoc.info/github/dropbox/dropbox-js/master/classes/Dropbox/Client.html#readdir-instance

checkbox.js示例应用程序使用 readdir 此处: https://github.com/dropbox/dropbox-js/blob/master/samples/checkbox.js/public/checkbox.coffee#L135

The checkbox.js sample application uses readdir here: https://github.com/dropbox/dropbox-js/blob/master/samples/checkbox.js/public/checkbox.coffee#L135

如果遇到包版广告,请在dropbox.js GitHub页面上打开一个问题。

If you run into roadblocks, open an issue on the dropbox.js GitHub page.

这篇关于仅限客户的Dropbox访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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