Dropbox API-共享文件夹和其中的内容 [英] Dropbox API - Share folder and contents in it

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

问题描述

使用Dropbox API,我可以共享或直接链接到文件夹。我也可以共享或直接链接到该文件夹​​内的任何文件。

Using the Dropbox API I can share or get a direct link to a folder. I can also share or get a direct link to any file inside that folder.

我正在尝试为应用程序上的文件夹创建自己的容器。用户应该能够打开该文件夹的文件。问题是,如果我只共享文件夹,Dropbox提供的链接将显示其文件夹容器,而其中的文件将显示在其容器中。我可以获取每个文件的直接链接,并在自己的容器中创建自己的文件列表,但这并不是很有效,因为我必须分别获取文件夹中每个文件的链接。

I'm trying to create my own container for the folder on my app. The users should be able to open the files of the folder. The problem is that if I just share the folder the link Dropbox provides shows their folder container, and the files inside are displayed in their container. I can get direct links for each of the files and make my own list of files in my container but it is not very efficient since I have to get links separately for each file in the folder.

是否可以共享文件夹(或获取直接网址)并自动访问其中包含的文件?

Is it possible to share the folder -- or get direct url -- and automatically be able to access the files it contains?

谢谢。 p>

Thanks.

推荐答案

您想要/ media API调用

You want the /media API call

https://www.dropbox.com/developers/core/docs#media

引用类似于/ shares。不同之处在于,它绕过了Dropbox Web服务器,该服务器用于提供文件预览,以便您可以有效地流式传输媒体内容。

To quote "Similar to /shares. The difference is that this bypasses the Dropbox webserver, used to provide a preview of the file, so that you can effectively stream the contents of your media."

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

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