<?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: add members to a file/folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201470#M9499</link>
    <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Why dont you add these on StackOverflow docs? It would be usefull for everyone to see&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 20:24:21 GMT</pubDate>
    <dc:creator>skaros</dc:creator>
    <dc:date>2017-01-10T20:24:21Z</dc:date>
    <item>
      <title>add members to a file/folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201375#M9488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the dropbox-sdk-java, via Maven, and i unable to find a way to add members to a file(and later to a folder).&lt;/P&gt;&lt;P&gt;Could you provide with some pointers?&lt;/P&gt;&lt;P&gt;I think i have to use&lt;/P&gt;&lt;P&gt;DbxRawClientV2&lt;/P&gt;&lt;P&gt;DbxUserSharingRequests&lt;/P&gt;&lt;P&gt;But for one, i can not itialize DbxRawClientV2, if I try&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig("example/DbApi");
DbxRawClientV2 rawClient=new DbxRawClientV2(config, getToken(AuthorizationFile));&lt;/PRE&gt;&lt;P&gt;I am getting&lt;/P&gt;&lt;PRE&gt;Cannot instantiate the type DbxRawClientV2&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201375#M9488</guid>
      <dc:creator>skaros</dc:creator>
      <dc:date>2019-05-29T09:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: add members to a file/folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201461#M9498</link>
      <description>&lt;P&gt;You don't need to use&amp;nbsp;DbxRawClientV2. You should instead use&amp;nbsp;DbxClientV2, as shown in the examples, e.g., &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java#L52" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calling &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/sharing/DbxUserSharingRequests.html#addFileMember-java.lang.String-java.util.List-" target="_self"&gt;addFileMember&lt;/A&gt;&amp;nbsp;would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig("example");
DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);

List&amp;lt;MemberSelector&amp;gt; newMembers = new ArrayList&amp;lt;MemberSelector&amp;gt;();
MemberSelector newMember = MemberSelector.email("dbapitesting@gmail.com");
newMembers.add(newMember);

List&amp;lt;FileMemberActionResult&amp;gt; fileMemberActionResults = client.sharing().addFileMember("/test.txt", newMembers);
System.out.print(fileMemberActionResults);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 19:35:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201461#M9498</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-10T19:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: add members to a file/folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201470#M9499</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Why dont you add these on StackOverflow docs? It would be usefull for everyone to see&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 20:24:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201470#M9499</guid>
      <dc:creator>skaros</dc:creator>
      <dc:date>2017-01-10T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: add members to a file/folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201474#M9500</link>
      <description>I just wrote this for this thread, but I'll make a note to post it on StackOverflow later. Thanks!</description>
      <pubDate>Tue, 10 Jan 2017 20:37:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/add-members-to-a-file-folder/m-p/201474#M9500</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-10T20:37:33Z</dc:date>
    </item>
  </channel>
</rss>

