Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
panagiotis p.
10 years agoExplorer | Level 3
Get shared link already exists
Hello Dropbox,
I am interesting to get a Share Url from file though Java Api 2.0.1. First of all I use
SharedLinkMetadata var =client.sharing().createSharedLinkWithSettings("my path")
to create the share link for mypath file. How I can get the already exist shared url to this file? I am trying the same thing and I take Exception shared link already exists.
Appreciate your help.
1 Reply
Replies have been turned off for this discussion
- Steve M.10 years ago
Dropbox Staff
I think calling /sharing/list_shared_links with the path to the file you're interested in and direct_only=true is the best way to do this.
In Java, I believe that would be:
ListSharedLinksResult result = client.sharing().listSharedLinksBuilder()
.withPath("my path").withDirectOnly(true).start();
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!