We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Ulf K.2
10 years agoNew member | Level 1
Get link for a file?
I'd like to get the public dropbox link for a local file.
E.g.: https://www.dropbox.com/s/<some id>/v16.90.0310_beta.zip?dl=0
is the public dropbox link for the local file:
C:\Users\%USERNAME%\Dropbox\XY_Updates\v16.90.0310_beta.zip
Is there a way to get this one with an API (preferred: Python) call? Unfortunately the Windows Version doesn't have a CLI interface (like the linux version) which would make the whole thing pretty easy...
2 Replies
- Greg-DB10 years ago
Dropbox Community Moderator
Yes, the Dropbox API does offer the ability to get shared links for files. If you use the Python SDK, you can use the sharing_create_shared_link_with_settings method.
Or, if you prefer to use the HTTP endpoints themselves, that's /2/sharing/create_shared_link_with_settings.
- Ulf K.210 years agoNew member | Level 1
Thank you, Gregory!
That's enough to write a small script that does what I need :)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!