cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get shared link already exists

Get shared link already exists

panagiotis p.
Explorer | Level 3

 

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 1

Re: Get shared link already exists

Steve M.
Dropboxer

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();
Who's talking

Top contributors to this post

  • User avatar
    Steve M. Dropboxer
What do Dropbox user levels mean?
Need more support?