Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
rnj1776
7 years agoExplorer | Level 3
list_shared_links says I have no shared links...but I do have them..,
So...I made a call to `list_shared_links` precisely because a call to create a shared link said the link already existed...I didn't cache some of them originally...so I was writing code to detect thi...
Greg-DB
Dropbox Staff
7 years agoTo clarify, were you calling /2/sharing/create_shared_link_with_settings with the "path" for that "Original" folder itself, or with a path for a file inside that folder?
Note that the /2/sharing/list_shared_links works in the two different following ways:
- "If no path is given, returns a list of all shared links for the current user."
- "If a non-empty path is given, 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, supplying as path to a folder will not make it list the shared links for files inside that folder. If you want the shared links for a file, you need to specify the full path for the file.
Also, the variable anount of trailing periods are intentionally added by Dropbox, to discourage clients from doing exact string matching on these error string, in favor of prefix matching. This way, we can add nested errors without breaking clients.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 3 hours ago
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 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!