Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

panagiotis p.'s avatar
panagiotis p.
Explorer | Level 3
9 years ago

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.'s avatar
    Steve M.
    Icon for Dropbox Staff rankDropbox Staff
    9 years ago

    I think calling https://www.dropbox.com/developers/documentation/http/documentation#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 and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!