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?