We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
naru95
5 years agoNew member | Level 2
Download a file inside a Shared Team Folder using the Python SDK
I'm trying to download files inside a shared Dropbox Team Folder.
I have a list of shared folders in my account and I have the preview URLs saved for all the folders.
Using the preview URLs, ...
- 5 years ago
I can't say for sure exactly what's happening without seeing the actual values, but if the files are in the connected account, it's better to use paths/IDs everywhere, instead of preview/shared links. That's the more direct way of referencing things and may avoid the missing path values you mentioned, depending on the scenario.
Also, note that if the files are in the "team space", you do need to set some additional configuration to be able to access them. (API calls operate in the "team member folder" by default, but you can access the "team space" when you need to.) I recommend reading the Team Files Guide first:
https://www.dropbox.com/lp/developers/reference/dbx-team-files-guide
In the Python SDK in particular, you can set that 'Dropbox-API-Path-Root' header via Dropbox.with_path_root.
Greg-DB
5 years agoDropbox Staff
I can't say for sure exactly what's happening without seeing the actual values, but if the files are in the connected account, it's better to use paths/IDs everywhere, instead of preview/shared links. That's the more direct way of referencing things and may avoid the missing path values you mentioned, depending on the scenario.
Also, note that if the files are in the "team space", you do need to set some additional configuration to be able to access them. (API calls operate in the "team member folder" by default, but you can access the "team space" when you need to.) I recommend reading the Team Files Guide first:
https://www.dropbox.com/lp/developers/reference/dbx-team-files-guide
In the Python SDK in particular, you can set that 'Dropbox-API-Path-Root' header via Dropbox.with_path_root.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or 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!