We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Shilpa M.
10 years agoNew member | Level 1
Import Email shared file by api.
How can I Download file where I get shared file in mail.
Is there any method in api to get this link.
john b.226
10 years agoNew member | Level 1
Hi Gregory,
Sorry, I should have explained this better.
I've shared a file with myself (using a different email account) by clicking on the "Share"
button, and filling in my email address. The automatic email then sent by Dropbox is here:
What I'm trying to do is go from that email (rather than a user-created email with a shared
link pasted in manually, which works fine, but requires an extra step on the part of the user) to a download link.
The "View file" URL ( https://www.dropbox.com/l/scl/w9txMqmTNk4RBqzjpmWuZj?text=3D1 ) embedded in the email above does not work with the get_shared_link_metadata API, whether
or not I remove the "text=3D1" or add "&dl=1" from/to the query.
So the step I'm missing is how to go from that URL to one that *will* work with the API.
I can of course click on the link manually and get the download page etc.; the point is
to be able to do this from a scripted email client. I put some effort into parsing
the web page that the emailed link leads to, and tracing the javascript to see if/where
a API-usable link is being generated, but I failed.
Thanks,
John
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!