简体   繁体   English

如何在具有完全权限的Dropbox中创建新应用

[英]How to create a new app in Dropbox with Full permissions

I'm trying to change my Dropbox application permission from 'App folder' to 'Full Dropbox'. 我正在尝试将我的Dropbox应用程序权限从“应用程序文件夹”更改为“完整Dropbox”。 By application I mean 'My apps': “应用程序”是指“我的应用程序”:

在此处输入图片说明

I'm doing this to access all the functions provided by Dropbox API, otherwise an error is shown, for example: 我这样做是为了访问Dropbox API提供的所有功能,否则会显示错误,例如:

Error in call to API function "sharing/get_folder_metadata": Your API app is an "App Folder" app. 调用API函数“ sharing / get_folder_metadata”时出错:您的API应用是“应用文件夹”应用。 It is not allowed to access this API function. 不允许访问此API函数。

Anyway, I've read that the only way to change the permission to an app is by creating a new one . 无论如何,我已经读过,更改应用程序权限的唯一方法是创建一个新应用程序。 Therefore, what I did was, created a new app with permission type 'Full dropbox' but for some reason it didn't even show up under 'Dropbox > Apps' directory. 因此,我要做的是创建一个权限类型为“ Full dropbox”的新应用,但由于某种原因,它甚至没有显示在“ Dropbox> Apps”目录下。

在此处输入图片说明

According to developers guide if app has permission App folder then it is moved under Apps folder automatically. 根据开发人员指南,如果app拥有App folder权限,则它将自动移动到Apps文件夹下。 I tried also that but the folder didn't appear there for some reason. 我也尝试过,但是由于某种原因该文件夹没有出现。 So, why the first application is showing.. 那么,为什么显示第一个应用程序。

Can there be only one active app, like, should I download all the data from first one, delete it and then create new app with Full permissions? 是否只能有一个活动的应用程序,例如,我应该从第一个应用程序下载所有数据,将其删除,然后创建具有完全权限的新应用程序吗?

It's not possible to switch the permission on an existing Dropbox API app. 无法在现有的Dropbox API应用上切换权限。

If you want to change the permission used for an app that hasn't been released to users, you can do so by deleting the current API app registration and registering another with the desired permission. 如果要更改尚未发布给用户的应用程序所使用的权限,可以通过删除当前的API应用程序注册并使用所需的权限注册另一个来进行更改。 Deleting an API app in development mode frees up the name so you can register it again. 在开发模式下删除API应用会释放名称,因此您可以重新注册。 Once you do, just be sure to update your app accordingly to use the new app key and secret. 完成后,只需确保相应地更新您的应用程序即可使用新的应用程序密钥和机密。 Access tokens for the deleted app will also no longer work. 删除的应用程序的访问令牌也将不再起作用。

If your app has already been released to users, we do not recommend disabling your API app, as it would break the integration for existing users. 如果您的应用已经发布给用户,我们不建议您禁用API应用,因为这会破坏现有用户的集成。 Instead, we recommend you register another API app for the other permission and add that as an option in your app. 相反,我们建议您为另一个权限注册另一个API应用程序,并将其作为选项添加到您的应用程序中。

You can register a new API app here: 您可以在此处注册新的API应用:

https://www.dropbox.com/developers/apps/create https://www.dropbox.com/developers/apps/create

There isn't a limit on the number of API apps that can be owned by or linked to a particular account. 特定帐户可以拥有或链接到的API应用程序的数量没有限制。

Your second App Console screenshot shows that you do own two API apps: one with the "app folder" permission, and one with the "full Dropbox" permission. 您的第二个应用程序控制台屏幕快照显示您确实拥有两个API应用程序:一个具有“应用程序文件夹”权限,另一个具有“完整Dropbox”权限。

Note that only apps with the "app folder" permission get a special "app folder" automatically created under "/Apps". 请注意,只有具有“应用程序文件夹”权限的应用程序才会在“ / Apps”下自动创建一个特殊的“应用程序文件夹”。 Apps the with "full Dropbox" permission do not, and instead can access any path in the account. 具有“完全保管箱”权限的应用没有权限,而是可以访问帐户中的任何路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM