投递箱应用程序只能与一个投递箱帐户进行交互 [英] Dropbox app destined to interact with only one dropbox account

查看:72
本文介绍了投递箱应用程序只能与一个投递箱帐户进行交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有一个简单的网络表单,该表单还可以使人们上传一些pdf。
我想做的事(由于上传文件的大小和数量)是将该应用程序的后端绑定到我的保管箱帐户或box.com帐户。
两种服务都提供类似的API来构建应用。

My need is to have a simple web form that also lets people upload some pdf's. What I was thinking I could do (because of the size and number of uploaded files) is to tie the backend of this app to either my dropbox account or my box.com account. Both services offer similar API's to build apps.

但是它们都假定我想与人们的保管箱/收银箱帐户进行交互。
我想我有点想要相反的意思。人们会将文件上传到Web服务器,但是我想以编程方式将它们上传到这两个服务中的任何一个,但是在具有仅与我的帐户相关的访问和权限的MY帐户下。

However they both assume I want to interact with people's dropbox/box account. I think I kinda want the reverse of that. People would upload files to a web server but I want to upload them programatically to either of these 2 services, but under MY account with access and permissions related only to MY account.

用户完全不需要与保管箱进行交互,也不需要批准任何东西。
为什么似乎无法使用API​​来将文件添加到我拥有的相同的,以前已知的保管箱帐户中?

The users don't need to interact with dropbox at all, they don't need to approve anything. Why doesn't it seem possible to use the API in such a way that files can be added to the same, previously known, dropbox account which I own?

推荐答案

虽然这不是预期的用途,但基本思路是手动为该帐户手动获取一个授权的访问令牌,并将其保存并重新用于以后的所有呼叫。 (请确保不要撤消它。)

While this isn't the intended use, the basic idea would be to manually get an authorized access token for the account once, and save and reuse it for all future calls. (Just be sure not to revoke it.)

与管理多个用户基本相同,只是每个用户只是重复使用相同的访问令牌,而不是自己的。

It is essentially the same way you would manage multiple users, except that each user just reuses the same access token, instead of their own.

这篇关于投递箱应用程序只能与一个投递箱帐户进行交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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