如何使用box-api获取共享项? [英] How to use box-api to get the Shared item?

查看:52
本文介绍了如何使用box-api获取共享项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以举一个例子,说明如何使用box-api V2通过共享链接api获取共享项的详细信息。

Can I have a example of how to use the box-api V2 for getting the shared item details using shared link api.

例如,如果该文件夹是公共共享的

For example, if the folder is shared for public

1. Do I need use authorization in calling the API get the folder details ?

谢谢

推荐答案

您将要查看用于生成共享链接的文档( http://developers.box.com/docs/#files-create-a-shared-link-for-a-file ),并获取有关文件和文件夹的信息。

You'll want to check out the documentation for generating shared links (http://developers.box.com/docs/#files-create-a-shared-link-for-a-file) and getting information about files and folders.

如果您有权访问该文件,则可以获取有关文件的信息来确定是否启用了共享链接。如果没有,它将为Null,如果已启用,则提供一个Web URL或下载URL,以及它是一个 Open, Company或 Collaborators Only链接。

If you have access to the file, you can 'Get Information About a File' to determine if the shared link is enabled or not. It will be Null if no, provide a web URL or download URL if it's enabled, as well as if it's a 'Open,' 'Company,' or 'Collaborators Only' link.

但是,如果您不拥有或无法访问该文件,但确实具有指向该文件的共享链接,则可能还需要查看本文档。
http://developers.box.com/using-shared-items/

If you don't own or have access to the file but do have a shared link to it, though, you might also want to check out this documentation. http://developers.box.com/using-shared-items/

这篇关于如何使用box-api获取共享项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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