Hi Everyone!Â
First of all im new to this so please dont take me to harsh if im using wrong vocabulary or im saying dumb stuff haha 😄
So i have a big folder which contains 10.000 folders each containing again around 5 image files in my Team Directory. I want to create a download link for every file using the python sdk. I created an app and got my token. Then I got my, team_space_namespace_id (list_folders), ng_member_id (get_current_account) with the green functions(?) in postman. Then i pasted them into this python script:Â
Â
import dropbox as dbx
Â
dropbox_token = <access token>
team_space_namespace_id =Â <team_space_namespace_id>
ng_member_id =Â <ng_member_id >
output = dbx.DropboxTeam(dropbox_token).with_path_root(dbx.common.PathRoot.root(team_space_namespace_id)).as_admin(ng_member_id).files_list_folder("").entries
print(output)
Â
I got the "DropboxTeam" Line because when i list the noremal directory only my personal directory is shown but i wanted the Team Folder. When I Executed it i got the following error:
Â
dropbox.exceptions.BadInputError: BadInputError('540abf5f823f4f699855a087034d2339', 'Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature')
Â
I couldnt find the files/list_folder permission in the app settings and there are all und "Files and Folders" and "Account Info" activated. So whats the problem here? Thank you for any help!Â
Kind regards,
Tobi
Â