<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sharable link to file using Java API v2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173726#M6772</link>
    <description>&lt;P&gt;No, the API doesn't provide a way for controlling&amp;nbsp;that, but you can parse the URL and change it on the client-side. There's information about these parameters here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/help/201" rel="nofollow noreferrer"&gt;https://www.dropbox.com/help/201&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2016 22:36:28 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-07-01T22:36:28Z</dc:date>
    <item>
      <title>Sharable link to file using Java API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173721#M6767</link>
      <description>&lt;P&gt;Hello, I am able to upload a &amp;nbsp;file with Java API v2:&lt;/P&gt;
&lt;PRE&gt;try (InputStream inputStream = new FileInputStream(localFile)) {&lt;BR /&gt;    return mDbxClient.files().uploadBuilder(remoteFolderPath + "/" + remoteFileName)&lt;BR /&gt;            .withMode(WriteMode.OVERWRITE)&lt;BR /&gt;            .uploadAndFinish(inputStream);&lt;BR /&gt;} catch (DbxException | IOException e) {&lt;BR /&gt;    mException = e;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;How can I get a sharable link to this file?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:32:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173721#M6767</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2019-05-29T09:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sharable link to file using Java API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173722#M6768</link>
      <description>&lt;P&gt;You can use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/sharing/DbxUserSharingRequests.html#createSharedLinkWithSettings-java.lang.String-" target="_blank" rel="nofollow noreferrer"&gt;createSharedLinkWithSettings&lt;/A&gt; to get a shared link for a file or folder.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 01:12:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173722#M6768</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-01T01:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sharable link to file using Java API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173723#M6769</link>
      <description>&lt;P&gt;Thanks, but the resulting link is not public, it requires to login&lt;/P&gt;
&lt;PRE&gt;SharedLinkMetadata slm = mDbxClient.sharing().createSharedLinkWithSettings(remoteFolderPath + "/" + remoteFileName, SharedLinkSettings.newBuilder().withRequestedVisibility(RequestedVisibility.PUBLIC).build());&lt;BR /&gt;String url = slm.getUrl();&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:59:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173723#M6769</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2016-07-01T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sharable link to file using Java API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173724#M6770</link>
      <description>&lt;P&gt;What is the the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/sharing/SharedLinkMetadata.html" target="_blank" rel="nofollow noreferrer"&gt;SharedLinkMetadata&lt;/A&gt;.&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/sharing/LinkPermissions.html" target="_blank" rel="nofollow noreferrer"&gt;LinkPermissions&lt;/A&gt;.&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/sharing/ResolvedVisibility.html" target="_blank" rel="nofollow noreferrer"&gt;ResolvedVisibility&lt;/A&gt; on the resulting link metadata (your slm variable)? It can be different than the requested visibility, per the documentation:&lt;/P&gt;
&lt;P&gt;"The current visibility of the link after considering the shared links policies of the the team (in case the link's owner is part of a team) and the shared folder (in case the linked file is part of a shared folder)."&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 12:55:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173724#M6770</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-01T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sharable link to file using Java API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173725#M6771</link>
      <description>&lt;P&gt;The resolved visibility is PUBLIC, but today it seems to work.&lt;BR /&gt;I did not change my code, so this is pretty odd.&lt;/P&gt;
&lt;P&gt;Anyways I have one more question about this. The link that is returned ends with dl=0.&lt;/P&gt;
&lt;P&gt;Is there some parameter that returns a link ending with dl=1&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 13:45:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173725#M6771</guid>
      <dc:creator>Holger K.</dc:creator>
      <dc:date>2016-07-01T13:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sharable link to file using Java API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173726#M6772</link>
      <description>&lt;P&gt;No, the API doesn't provide a way for controlling&amp;nbsp;that, but you can parse the URL and change it on the client-side. There's information about these parameters here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/help/201" rel="nofollow noreferrer"&gt;https://www.dropbox.com/help/201&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2016 22:36:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharable-link-to-file-using-Java-API-v2/m-p/173726#M6772</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-01T22:36:28Z</dc:date>
    </item>
  </channel>
</rss>

