You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
brookesteele
4 years agoNew member | Level 2
API doesn't allow shared links from not owner
I have a python script to pull and process team data where the I (a.k.a. developer) processes data using a shared link pasted in by a team member. The goal is to process data supplied by team on a s...
Greg-DB
Dropbox Staff
Using the Dropbox API v2 Python SDK, you should be able to use the sharing_get_shared_link_metadata and sharing_get_shared_link_file/sharing_get_shared_link_file_to_file methods to get the metadata and file data, respectively, from a shared link, as long as the links settings allow it (e.g., it's publicly accessible), even if you're not using an access token for the shared link owner.
Could you share the relevant code you're running and the error/output you're getting so I can take a look and get a better idea of specifically what's not working for you? It may be helpful if you can share a sample shared link, but please don't share any access tokens. Thanks!
brookesteele
4 years agoNew member | Level 2
My solution was to use the force download option of my shared link and just download it w/o using the dropbox api. In my case, the api is unnecessary.
import requests
...
force_link =external_link.replace('=0', '=1')
r = requests.get(force_link, stream=True)
with open(dest_file, "wb") as video:
for chunk in r.iter_content(chunk_size=1024):
if chunk:
video.write(chunk)
return
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 19 minutes ago
If 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!