We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
taro_suzuki1101
5 years agoExplorer | Level 4
About list_shared_links
I'm using a Dropbox basic account and API v2.0. Why do some files return a URL with / s / and some do not, even if I hit list_shared_links with a specific file path? Also, what is the difference be...
taro_suzuki1101
5 years agoExplorer | Level 4
Thank you for teaching me!
I have an additional question.
The return value of list_shared_links is
Some files
"Links": [{". Tag": "file", "url": "https://www.dropbox.com/s/~~~~~",]
On the other hand
"Links": [{". Tag": "folder", "url": "https://www.dropbox.com/sh/~"]
There is a file that returns the folder information first. What is the difference?
Is it possible that the file is restricted?
I don't know the cause, so please let me know who knows.
Greg-DB
Dropbox Community Moderator
5 years agoWhen supplying a particular path, the /2/sharing/list_shared_links endpoint "returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path". So, if you call it for a specific file and see a folder link, that means that there's a shared link for a parent folder that enables access to that requested file. If you only want to links to the file itself, "Links to parent folders can be suppressed by setting direct_only to true".
- taro_suzuki11015 years agoExplorer | Level 4
Thank you very much. I'm approaching a solution!
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!