我是否需要Dropbox应用程序才能将文件上传到我自己的Dropbox?

时间:2021-08-14 07:37:50

I want to push files from a server to my own Dropbox. I'm fine with storing an API token or even (although reluctantly) the account password on the server. I don't want to install Dropbox on the server.

我想将文件从服务器推送到我自己的Dropbox。我可以存储API令牌,甚至(尽管很不情愿)存储服务器上的帐户密码。我不想在服务器上安装Dropbox。

Do I still need to create an app at Dropbox Developer Home? I feel like I'm cluttering the app namespace - of course I could just use a UUID. Also, I don't want the app listed anywhere or have other users be able to authorize the app to their Dropbox account.

我还需要在Dropbox Developer Home上创建应用吗?我觉得我混淆了app命名空间 - 当然我可以使用UUID。此外,我不希望应用程序列在任何位置或让其他用户能够将应用程序授权到他们的Dropbox帐户。

2 个解决方案

#1


7  

There are two ways you can programmatically interact with Dropbox:

您可以通过两种方式以编程方式与Dropbox进行交互:

  1. via the official API
  2. 通过官方API
  3. via the local filesystem on a machine where the official client is running
  4. 通过运行官方客户端的计算机上的本地文件系统

For 1, you do need to register an API app, but I wouldn't worry about cluttering the app namespace. There are a lot of apps that use Dropbox nowadays anyway. Just use a relatively distinct name, perhaps distinct to you specifically.

对于1,您需要注册一个API应用程序,但我不担心应用程序命名空间的混乱。现在有很多应用程序使用Dropbox。只需使用一个相对不同的名称,也许与您截然不同。

Also, Dropbox itself doesn't make anything about registered apps publicly available anywhere. You're in control of it completely.

此外,Dropbox本身并未对任何地方公开提供的注​​册应用程序做任何事情。你完全控制它。

And using the API, you don't need to store the password, just the app token and access token. (You just need to process the auth flow once to get and store the access token.)

使用API​​,您无需存储密码,只需存储应用令牌和访问令牌。 (您只需处理一次auth流程即可获取并存储访问令牌。)

In addition, if you only need to link to your own account, you don't even need to apply for 'production' status.

此外,如果您只需要链接到自己的帐户,甚至不需要申请“生产”状态。

For 2, you don't need to register an API app, but you would need to install the client on the machine. Then you can just interact with the local filesystem directly, and let the client handle the rest. (Also, Dropbox doesn't work over FTP, though you may be able to hack something together where the machine pushes the file over FTP onto a machine where the client is running.)

对于2,您不需要注册API应用程序,但是您需要在计算机上安装客户端。然后,您可以直接与本地文件系统进行交互,让客户端处理其余的文件系统。 (另外,Dropbox不能通过FTP工作,尽管你可以将机器通过FTP推送到运行客户端的机器上的某些东西。)

#2


0  

Since Dropbox is mirroring a real file folder, you can put something in Dropbox by any method which can copy a file. You could use ftp from your server to an instance of your Dropbox folder, or just download a file.

由于Dropbox镜像了一个真实的文件夹,你可以通过任何可以复制文件的方法在Dropbox中放置一些东西。您可以将服务器中的ftp用于Dropbox文件夹的实例,或者只下载文件。

#1


7  

There are two ways you can programmatically interact with Dropbox:

您可以通过两种方式以编程方式与Dropbox进行交互:

  1. via the official API
  2. 通过官方API
  3. via the local filesystem on a machine where the official client is running
  4. 通过运行官方客户端的计算机上的本地文件系统

For 1, you do need to register an API app, but I wouldn't worry about cluttering the app namespace. There are a lot of apps that use Dropbox nowadays anyway. Just use a relatively distinct name, perhaps distinct to you specifically.

对于1,您需要注册一个API应用程序,但我不担心应用程序命名空间的混乱。现在有很多应用程序使用Dropbox。只需使用一个相对不同的名称,也许与您截然不同。

Also, Dropbox itself doesn't make anything about registered apps publicly available anywhere. You're in control of it completely.

此外,Dropbox本身并未对任何地方公开提供的注​​册应用程序做任何事情。你完全控制它。

And using the API, you don't need to store the password, just the app token and access token. (You just need to process the auth flow once to get and store the access token.)

使用API​​,您无需存储密码,只需存储应用令牌和访问令牌。 (您只需处理一次auth流程即可获取并存储访问令牌。)

In addition, if you only need to link to your own account, you don't even need to apply for 'production' status.

此外,如果您只需要链接到自己的帐户,甚至不需要申请“生产”状态。

For 2, you don't need to register an API app, but you would need to install the client on the machine. Then you can just interact with the local filesystem directly, and let the client handle the rest. (Also, Dropbox doesn't work over FTP, though you may be able to hack something together where the machine pushes the file over FTP onto a machine where the client is running.)

对于2,您不需要注册API应用程序,但是您需要在计算机上安装客户端。然后,您可以直接与本地文件系统进行交互,让客户端处理其余的文件系统。 (另外,Dropbox不能通过FTP工作,尽管你可以将机器通过FTP推送到运行客户端的机器上的某些东西。)

#2


0  

Since Dropbox is mirroring a real file folder, you can put something in Dropbox by any method which can copy a file. You could use ftp from your server to an instance of your Dropbox folder, or just download a file.

由于Dropbox镜像了一个真实的文件夹,你可以通过任何可以复制文件的方法在Dropbox中放置一些东西。您可以将服务器中的ftp用于Dropbox文件夹的实例,或者只下载文件。