We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

naru95's avatar
naru95
New member | Level 2
5 years ago

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, ...
  • Greg-DB's avatar
    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.