如何从 API 获取 Dropbox 可共享链接?
我们有一个使用 dropbox 作为文件存储的 Web 应用程序。目前,我们遇到了短链接在 31 天后变得无效的问题 (http://forums. dropbox.com/topic.php?id=33049)。因此,我们正在寻找创建可共享链接而不是短链接的方法。但是,我们在 API 中似乎找不到这个。
此外,它似乎使用功能来创建可共享链接,您首先必须访问特定的 dropbox URL 才能启用某些功能(http://forums.dropbox.com/topic.php?id=35225&replies=2#post-303557)。这是否也需要通过 API 来完成?
We have a web application that uses dropbox as file storage. We have currently run into the issue that shortlinks become inactive after 31 days (http://forums.dropbox.com/topic.php?id=33049). Therefore, we are looking for ways to create shareable links instead of shortlinks. However, we can't seem to find this in the API.
Also, it appears to use the funcationality to create a shareable link, you first have to visit a specific dropbox URL to enable something (http://forums.dropbox.com/topic.php?id=35225&replies=2#post-303557). Would this also need to be done via the API?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在撰写本文时,用户不再需要访问该论坛线程中的特定链接即可启用该功能。使用 /shares 调用创建的任何链接都会生成带有预览页面的“可共享链接”。 (这些链接用 db.tt 缩短。)
此外,启用该功能的用户将自动拥有不会过期的链接,类似于他们可以手动创建的链接。目前,没有 API 调用可以为未启用该功能的用户创建不过期链接。
At the time of writing, the user no longer has to have visit the specific link from that forum thread to enable the feature. Any link created using the /shares call yields a "shareable link" with the preview page. (These links are shortened with db.tt.)
Further, users who do have the feature enabled will automatically have non-expiring links, akin to the links they can create manually. There is currently no API call to create non-expiring links for users without the feature enabled.