简单的应用程序,支持上传到box.com [英] Simple Application to support uploads to box.com
问题描述
我正在尝试创建一个简单的box.com应用程序,该应用程序将支持文件夹创建以及将文件从我们的应用程序上传到box.com,以供多个box.com用户使用。
I am trying to create a simple box.com application that will support folder creation and file uploads from our application to box.com for use by multiple box.com users.
我有几个问题:
-
为了进行测试,我创建了一个新应用程序并指定了我不想公开(在我们开发时)。但是我找不到它,所以无法将其添加到测试用户帐户中-我该如何测试呢?如何将其添加到我的最终用户box.com帐户中?
For testing, I create a new application and specified that I did not want it to be public (while we develop it). But I can't add it to my test user account because I can't find it - so how can I test it? How do I add it to my end user box.com account?
这个想法是让box.com用户在其中输入凭据或密钥或其他内容我们的软件,以便我们可以自动在其帐户中上传文件和创建文件夹。但是我阅读的所有内容都涉及到获取票证并将用户重定向到登录页面。我们需要自动执行此过程,以便我们可以在没有box.com用户出席的情况下上传文件/创建文件夹。
The idea is to have the box.com user enter their credentials or key or something in our software so that we can automate the uploading of files and creation of folders within their accounts. But everything I read talks about getting a ticket and redirecting the user to a login page. We need to automate this process so we can upload files/create folders without the box.com users present. How is this done?
推荐答案
Box.com始终要求 auth_tokens
进行API调用。
Box.com always requires auth_tokens
to make a API calls.
因此,您必须首先获取 API密钥
,然后从该API密钥生成 auth_tokens
并保存。
需要使用用户 API密钥和身份验证令牌的组合来进行API调用。
Hence you have to first get API key
from your user and generate auth_tokens
from that API key and save it.
Combination of users 'API key' and 'auth tokens' will be required to make API calls.
注意:当前的auth_tokens不要过期。
Note: auth_tokens currently do not expire.
请查看框 api文档,以生成身份验证令牌。
要开发您的私人应用程序,您将拥有用户的API密钥,因此可以跳过第2步和第3步。
Have a look at the box api Documentation , to generate auth tokens. For developing your private application, you can skip step 2 and 3, as you will have user's API key.
这篇关于简单的应用程序,支持上传到box.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!