Discuss Dropbox Developer & API
Hi all,
I am new to dropbox api. My problem is whenver I try to create an app folder from the app console, the connection never works and I keep receiving an error regarding to the path, see below:
ApiError: ApiError('187007dde9fb433ea831afd60b273b83', CreateSharedLinkWithSettingsError('path', LookupError('not_found', None)))
I am fully aware that app folder can only access the files inside the the folder of the main app. Hence, I embedded the file I want to access inside the app folder in dropbox . I am using the following code:
import dropbox
dbx = dropbox.Dropbox(<app token>)
shared_link_metadata = dbx.sharing_create_shared_link_with_settings("/Apps/App_Name/example.xlsx")
print (shared_link_metadata.url)
Any ideas on how to overcome this issue?
Your help is much appreciated,
Thanks
Hi @arch2020,
Try transform the path from "/Apps/App_Name/example.xlsx" to "/example.xlsx". Is this helps? ![]()
Try to explain why. ![]()
Hi @arch2020,
Try transform the path from "/Apps/App_Name/example.xlsx" to "/example.xlsx". Is this helps? ![]()
Try to explain why. ![]()
It worked like magic. Thanks, it seems that with app folder, there is no need for referencing the name of the app, as the default location of the app, will always be the name of the app folder. very grateful for your help, you saved me tons of tons and unnecessary hustle.
@arch2020 wrote:..., it seems that with app folder, there is no need for referencing the name of the app, as the default location of the app, will always be the name of the app folder. ...
Almost exactly! ![]()
Actually, the app' folder forms a namespace that become a root folder for access from the application side. ![]()
thanks that really helped me alot to get past through my novice hardship :).
That's correct. You can also use files_list_folder and files_list_folder_continue to list the contents of any folder. For example, to list the contents of the root folder for your app, supply a path value of the empty string "". Then you can get the path values of any of the contents from the Metadata.path_lower value for the entry in the result.
many thanks @Greg-DB your additional information was really helpful.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!