Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Am I correct to assume the following:
a shared link will alawys have /s/ in the URL
The original preview link is of the from : www.dropbox.com/home/path/to/file?preview=filename.pdf
What I am trying to do
I have a list of URLs in my DB, and I need to use the API to generate a preview and embed it in a webpage
for the original preview links, I am parsing the lnk to extract the path and then use the get_preview endpoint
for the shared link, I am thinking about calling get_shared_link_metadata and from there get the id and call get_preview
Is there an easier way to do this?
Hello Greg,
Thanks for the detailed answer.
I tried to go with with list_folder and list_folder/continue. But there are thousnads of files and it was not practical.
Also, sometimes a user have a sharing link but the file is not shared with their dropbox account, they only have the public sharing link, so I can't use this option.
It would be great if there was a way to get the meta data of a file through a link , despite what kind of link it is.
For now, I will relay on get_shared_link_metadata and if it failesI will assume it is a preview link and parse it accorrdingly.
and I will limit URLs I have to sharing links only from now on.
Thanks again for your answer, please let me know if there is an easier approach
Hi there!
If you need more help you can view your support options (expected response time for a 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!