We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
dredknight
8 years agoExplorer | Level 4
Access public shared files without authentication
Dear community,
I was wondering if it is possible to use a the ruby dropbox API to access and download publically shared files without authentication?
You can do that from the web as long as you have the URL but I could not find any way to make this possible inside my app.
Any help on how I can make this work will be appreciated :)!
- If you have a shared link for the file, the simplest way to download it is to modify the URL parameter(s) as shown here:
https://www.dropbox.com/help/desktop-web/force-download
You can then download from the modified link.
Otherwise, if you do want to use the API, you can use the /2/sharing/get_shared_link_file endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file
- MarkSuper User II*moves to API forum*
- Greg-DBDropbox StaffIf you have a shared link for the file, the simplest way to download it is to modify the URL parameter(s) as shown here:
https://www.dropbox.com/help/desktop-web/force-download
You can then download from the modified link.
Otherwise, if you do want to use the API, you can use the /2/sharing/get_shared_link_file endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file- dredknightExplorer | Level 4
Oh.. this DL=1 is just what I needed! Thank you so much :)!
P.S.
Unfortunately when I put it as a download link in ruby it still does not work even though it works through brower. :/- Greg-DBDropbox StaffHow does it fail exactly? Can you share your code?
One thing to be aware of is that the dl=1 link will return a redirect first, so make sure your HTTP client will follow redirects.
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!