在我的 Dropbox 开发者应用程序中更新应用程序权限
Update app permissions in my dropbox developer app
我在保管箱中创建了一个应用程序,但是每当我更新我的应用程序的权限并刷新页面时,我都会失去所有更新的权限。我在哪里保存它们?
刷新选项卡后:
这不仅仅是一个视觉故障,就像我 运行 代码
dbx = dropbox.Dropbox(DROPBOX_ACCESS_TOKEN)
def dropbox_list_files(path):
"""Return a Pandas dataframe of files in a given Dropbox folder path in the Apps directory.
"""
try:
files = dbx.files_list_folder(path).entries
files_list = []
for file in files:
if isinstance(file, dropbox.files.FileMetadata):
metadata = {
'name': file.name,
'path_display': file.path_display,
'client_modified': file.client_modified,
'server_modified': file.server_modified
}
files_list.append(metadata)
df = pd.DataFrame.from_records(files_list)
return df.sort_values(by='server_modified', ascending=False)
except Exception as e:
print('Error getting list of files from Dropbox: ' + str(e))
print(dropbox_list_files("/"))
我收到错误:
Error getting list of files from Dropbox: BadInputError('**String of data**', 'Error in call to API function "files/list_folder": Your app is not permitted to access this endpoint because it does not have the required scope \'files.metadata.read\'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.')
如何保存我的新权限以便不再出现此错误?
页面底部浮动栏中有一个“提交”按钮,您需要使用它来保存您应用的更改。
我在保管箱中创建了一个应用程序,但是每当我更新我的应用程序的权限并刷新页面时,我都会失去所有更新的权限。我在哪里保存它们?
刷新选项卡后:
这不仅仅是一个视觉故障,就像我 运行 代码
dbx = dropbox.Dropbox(DROPBOX_ACCESS_TOKEN)
def dropbox_list_files(path):
"""Return a Pandas dataframe of files in a given Dropbox folder path in the Apps directory.
"""
try:
files = dbx.files_list_folder(path).entries
files_list = []
for file in files:
if isinstance(file, dropbox.files.FileMetadata):
metadata = {
'name': file.name,
'path_display': file.path_display,
'client_modified': file.client_modified,
'server_modified': file.server_modified
}
files_list.append(metadata)
df = pd.DataFrame.from_records(files_list)
return df.sort_values(by='server_modified', ascending=False)
except Exception as e:
print('Error getting list of files from Dropbox: ' + str(e))
print(dropbox_list_files("/"))
我收到错误:
Error getting list of files from Dropbox: BadInputError('**String of data**', 'Error in call to API function "files/list_folder": Your app is not permitted to access this endpoint because it does not have the required scope \'files.metadata.read\'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.')
如何保存我的新权限以便不再出现此错误?
页面底部浮动栏中有一个“提交”按钮,您需要使用它来保存您应用的更改。