title: How to retrieve shared link using Dropbox.Api v 2.0 client nuget library in C#?
body: <p>I've been working with this for hours, I have .png files inside Dropbox and I need to get a raw link to those files so I can use it within my code. How can I retrieve in C# a shared link that I have in Dropbox? I need to retrieve that link so I can use it in my view to assign it to a <code>src</code> parameter for an image. Inside my controller I'm using the <code>CreateSharedLinkWithSettingsArg</code> method which creates shared links for files, but how can I get those links after? This is my code:</p>
  
  <pre><code>List&lt;Dropbox.Api.Files.Metadata&gt; list = new List&lt;Dropbox.Api.Files.Metadata&gt;();
     foreach (var item in list)
              {
                  var path = new Dropbox.Api.Sharing.CreateSharedLinkWithSettingsArg(item.PathDisplay);
  }
  </code></pre>
  
  <p>I've used something like this and works good but this code throws an exception when the shared link already exists because the following code tries to create a shared link always, I've shared all the files and I just need to get the shared link within my code, how can I do this?: </p>
  
  <pre><code>var sharing = await client.Sharing.CreateSharedLinkWithSettingsAsync(path);
  var src = sharing.Url;
  </code></pre>
  
  <p>I'm using Dropbox.Api v 2.0 and C#</p>