Box V2 API中的文件夹/文件智能链接启用/禁用调用 [英] Folder/File smart link enable/disable call in Box V2 API

查看:51
本文介绍了Box V2 API中的文件夹/文件智能链接启用/禁用调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,box开发者博客上的一篇文章谈到了V2 API功能的更新。 http://developers.blog.box.com/2012/ 07/13 / more-v2-updates /

Recently an article on the box dev blog talked about an update in the V2 API functionality. http://developers.blog.box.com/2012/07/13/more-v2-updates/.

我特别在谈论文件/文件夹的共享链接。文章说,该API可用于创建/删除共享链接并更改权限。但是我在 http://developers.box.com/docs 页。

I am specifically talking about the share link for file/folders. The article says the API can be used to create/delete share links and also change the permission.But i do not see any such API on the http://developers.box.com/docs page.

有人对这种差异有任何想法吗?

Does anybody have any idea about this discrepancy? Is this available now in V2 or not?

推荐答案

智能链接被视为文件夹或文件的属性,可以创建该链接吗?通过更新有关文件夹或文件的元数据。这是通过PUT方法完成的。您可以在此处查看文件此处是文件夹

Smart links are treated as an attribute of a folder or file and can be created by updating the metadata about the folder or file. This is done through the PUT method. You can see this here for files and here for folders.

例如,如果您要为文件启用共享链接,则可以使用cURL进行此调用:

For example, if you wanted to enable a shared link for a file you would make this call using cURL:

curl https://api.box.com/2.0/files/FILE_ID \
-H "Authorization: BoxAuth api_key=API_KEY&auth_token=AUTH_TOKEN" \
-d {"shared_link": {"access": "open"}} \
-X PUT

这篇关于Box V2 API中的文件夹/文件智能链接启用/禁用调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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