<?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: Share a file only with added members? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556528#M26348</link>
    <description>&lt;P&gt;Thank you so much,&lt;BR /&gt;Finally I use the API directly, because I have not found a way to integrate the allow_download parameter in the settings of the method.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 07:47:44 GMT</pubDate>
    <dc:creator>Aristide</dc:creator>
    <dc:date>2021-11-10T07:47:44Z</dc:date>
    <item>
      <title>Share a file only with added members?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/555825#M26330</link>
      <description>&lt;P&gt;Hello I am using DropBox SDK java v2.&lt;/P&gt;
&lt;P&gt;I am using the following method to create the share:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; public String createLinkDropBox(RecyclerItemCloud itemCloud, String email){

        try {
            List&amp;lt;MemberSelector&amp;gt; newMembers = null;
            if (email != null){
                newMembers = new ArrayList&amp;lt;&amp;gt;();
                MemberSelector newMember = MemberSelector.email(email);
                newMembers.add(newMember);
            }
            SharedLinkSettings sl = new SharedLinkSettings(null,null,null, null, null);
            SharedLinkMetadata sharedLinkMetadata = itemCloud.getDropBoxSevice().sharing().createSharedLinkWithSettings(itemCloud.getPath(),sl);
            if (newMembers != null){
                itemCloud.getDropBoxSevice().sharing().addFileMember(itemCloud.getPath(),newMembers);
            }

            return sharedLinkMetadata.getUrl();

        }  catch (Exception e) {
            e.printStackTrace();
        }

        return null;
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 4 parameters for:&lt;/P&gt;
&lt;PRE&gt;SharedLinkSettings&lt;/PRE&gt;
&lt;P&gt;1 - requestedVisibility&lt;/P&gt;
&lt;P&gt;2 - linkPassword&lt;/P&gt;
&lt;P&gt;3 - expires&lt;/P&gt;
&lt;P&gt;4 - audience&lt;/P&gt;
&lt;P&gt;5 - access&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't find the right values for these parameters so that only added members can access the share.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 05:56:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/555825#M26330</guid>
      <dc:creator>Aristide</dc:creator>
      <dc:date>2021-11-08T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Share a file only with added members?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556098#M26337</link>
      <description>&lt;P&gt;You can use an audience of &lt;A href="http://addFileMember%20https://dropbox.github.io/dropbox-sdk-java/api-docs/v4.0.1/com/dropbox/core/v2/sharing/LinkAudience.html#NO_ONE" target="_self"&gt;LinkAudience.NO_ONE&lt;/A&gt; when creating the shared link via createSharedLinkWithSettings, so that only those with access to the file (such as granted by addFileMember) can access it.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 19:32:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556098#M26337</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-11-08T19:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Share a file only with added members?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556528#M26348</link>
      <description>&lt;P&gt;Thank you so much,&lt;BR /&gt;Finally I use the API directly, because I have not found a way to integrate the allow_download parameter in the settings of the method.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 07:47:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556528#M26348</guid>
      <dc:creator>Aristide</dc:creator>
      <dc:date>2021-11-10T07:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Share a file only with added members?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556595#M26349</link>
      <description>&lt;P&gt;Thanks for the note. The 'allow_download' API option hasn't been incorporated into the Java SDK yet, but it should be included the next time the Java SDK is built with the latest version of the API spec.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 13:21:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-file-only-with-added-members/m-p/556595#M26349</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-11-10T13:21:06Z</dc:date>
    </item>
  </channel>
</rss>

