问题标签 [boxapiv2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
177 浏览

box-api - How do I get the comments added to a comment in the in the Box REST API?

How do I get the comments added to a comment in the in the Box REST API?

For example, how would I return the comments (marked in red) for the comment (marked in black)?

enter image description here

0 投票
1 回答
805 浏览

box-api - 获取所有有权访问协作的用户/组:BOX API

有没有办法检索所有有权访问协作的用户/组:BOX API?

0 投票
1 回答
116 浏览

windows-phone-8 - 下载具有韩文文件名的文件或文件损坏时收到 C# Box-API [net_WebHeaderInvalidControlChars]

从 Box 服务器下载时收到以下错误:

下面显示的是代码片段。

请注意,这只发生在具有韩文(非英文)文件名和损坏文件的文件中。对于图像文件和未损坏的文件,我能够成功下载。(损坏文件的示例是打开时显示错误消息的 word 或 ppt 文件)。

0 投票
2 回答
1659 浏览

box-api - box.net API oauth 刷新令牌,无需编码

我有 box.net API client_id 和 client_secret 。我想为某个盒子帐户获取刷新令牌,但我不想为它创建应用程序。

获取 API 刷新令牌并开始使用 API 的最简单方法是什么?也许有一些应用程序可以输入我的 client_id、client_secret 密钥然后执行 oauth 过程并最终复制我的刷新令牌?

0 投票
1 回答
331 浏览

locking - 使用 BOX API (BOX.com) 获取所有锁定的文件

我正在尝试找到一种解决方案来搜索/列出 BOX (BOX.com) 中的所有锁定文件。由于这似乎无法通过用户界面实现,因此我调查了 Rest API。

我找不到使用 API 搜索所有锁定文件的方法。我无法遍历 API。我不能使用“fields=lock”作为参数进行通配符搜索。

目前我可以查询单个文件是否被锁定:

返回

我可以使用“fields=lock”参数创建搜索,并使用查询来搜索包含“xls”的所有内容:

返回

如何搜索锁定的文件?

谢谢您的帮助!

0 投票
2 回答
927 浏览

box-api - Box View API:是否可以直接上传文件?

我想知道是否可以直接上传文件以与 Box View API 一起使用,而无需将其保存在我的本地服务器上。这个想法是用户将能够上传文件(pdf、ppt 等),它只能与 Box Viewer 一起使用,而不是保存在我的服务器中。用户将上传许多大文件,我希望避免存储它们。

我知道 Box 需要文件位置的 URL 才能生成内容,但是有没有办法通过 View API 上传和处理文件?

如果有人知道解决方案,将不胜感激!谢谢。

0 投票
1 回答
961 浏览

c# - 通过 Webclient 将文件上传到 Box 的 API v2

我正在使用 Box API v2,我尝试使用 WebClient 上传文件但没有成功。

从 API:

所以我用 C# 写了它:

当我尝试调试以查看发生了什么时,我在 UploadValues 步骤中什么也没看到。

任何想法?谢谢!

0 投票
1 回答
223 浏览

box-api - BOX API - 是否可以在后台授权用户?

我想使用 Box Embed 在我的 Web 应用程序上使用 Box。

但是要访问特定文件夹,我必须使用 BOX API 来获取文件夹信息并以编程方式构建我的盒子嵌入。

使用 Box API,我需要先对用户进行身份验证,然后才能进行 API 调用,这部分我已经完成,但是有没有办法在不向用户显示登录表单的情况下获取令牌?

0 投票
1 回答
430 浏览

box-api - Box API 502 Server Connection Closed

I'm uploading several thousand files through the Box API, and after a few hundred uploads I'm getting a 502 Server Connection Closed error (and the response is HTML, not JSON as I would expect). Average file size is 0.5M

The errors seem to be mostly affecting the larger files, but this could just be because it is more likely for the larger files to be mid-upload when the upload fails.

I'm also retrying files on 502 failures, and I sometimes get a general 500 error response, or sometimes a local ETIMEDOUT or a socket hang up error (I'm uploading using the Node request library). Any thought as to what is the problem here? Is it that Box is somehow having trouble with the amount of stuff I'm uploading from my local computer? (I would doubt that though.)

0 投票
2 回答
472 浏览

php - curl_exec 使用 php 在 box api 中上传文件失败

我可以在终端上使用 curl 上传文件,内容如下:

但是当我尝试使用 PHP 和以下代码做同样的事情时:

它给了我以下输出:

我浏览了各种网站,但似乎没有一个适合我的问题。无论我做什么,content_type 都保持为“text/html”。我试图在标题和帖子字段中设置它。但两者都没有奏效。我知道我正在正确获取访问代码并且它们是有效的。不过,我不确定 curl 选项。设置 CURLOPT_VERBOSE 或检查错误也不会返回任何内容。虽然没有 CURLOPT_RETURNTRANSFER 选项,但 curl_exec 返回 true。有人可以帮助我了解我在这里犯错的地方吗?