<?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: How we share folder and file ?, via dropbox api in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194652#M8832</link>
    <description>&lt;P&gt;okay greg, your code work, now my problem is &amp;nbsp;why i cant share mp3 ? , are there some file format that dropbox api doesnt support to share ?, and&amp;nbsp;now i stil try to show the list of mountable folder, and mount it as reciever. i confuse how to retrieve the list. this is the las feature of my basic dropbox vb application, i interested to upgrade my application further with more robust API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the question is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. what file extension dropbox support to add member beside txt ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. how to get the list of mountable folder -&amp;gt; get the share id -&amp;gt; and mount it&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 08:33:48 GMT</pubDate>
    <dc:creator>VAR_46</dc:creator>
    <dc:date>2016-11-17T08:33:48Z</dc:date>
    <item>
      <title>How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194217#M8755</link>
      <description>&lt;P&gt;okay i start from scratch "again", how i can share file and folder via dropbox api, i think some sharing flow,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. get the file and folder id, ( i already try it, show just two digit number)&lt;/P&gt;&lt;P&gt;2. choose the folder to share by adding member ( using id but i'm not sure the metadata.id.tostring give the right id)&lt;/P&gt;&lt;P&gt;3. what i shoul do next ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using get_metadata -&amp;gt; should i call sharedfolderasync ? &amp;nbsp;-&amp;gt; what next ? -&amp;gt; using addfoldermember -&amp;gt; done ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using get_metadata -&amp;gt; addfoldermember -&amp;gt; done&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;betwen step 1 or 2 , which one is right ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:28:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194217#M8755</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2019-05-29T09:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194299#M8768</link>
      <description>&lt;P&gt;To share a folder, you should first call &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ShareFolderAsync_1.htm" target="_self"&gt;ShareFolderAsync&lt;/A&gt;. That takes a "path" parameter that should be the path to the folder that you want to share. The documentation explains how to check the result of that operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once that's done, you should then call &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFolderMemberAsync_1.htm" target="_self"&gt;AddFolderMemberAsync&lt;/A&gt;&amp;nbsp;to invite members to that shared folder. That takes the shared folder ID, from the first step above, as well as the list of members you want to invite (a list of&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AddMember.htm" target="_self"&gt;AddMember&lt;/A&gt; instances).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var shareFolderLaunch = await this.client.Sharing.ShareFolderAsync ("/folder_to_share");
var sharedFolderId = "";
if (shareFolderLaunch.IsAsyncJobId) {
    while (true) {
        var shareFolderJobStatus = await this.client.Sharing.CheckShareJobStatusAsync(shareFolderLaunch.AsAsyncJobId.Value);
        if (shareFolderJobStatus.IsFailed) {
            Console.WriteLine ("Sharing folder failed: " + shareFolderJobStatus.AsFailed.Value);
            return;
        } else if (shareFolderJobStatus.IsInProgress) {
            Console.WriteLine ("Sharing folder in progress...");
            // todo: add some delay
        } else if (shareFolderJobStatus.IsComplete) {
            Console.WriteLine ("Sharing folder complete.");
            sharedFolderId = shareFolderJobStatus.AsComplete.Value.SharedFolderId;
            break;
        }
    }
} else if (shareFolderLaunch.IsComplete) {
    sharedFolderId = shareFolderLaunch.AsComplete.Value.SharedFolderId;
} else {
    return;
}

Console.WriteLine ("Shared folder with ID: " + sharedFolderId);

var members = new[] { new AddMember(new MemberSelector.Email("email@example.com")) };
await this.client.Sharing.AddFolderMemberAsync(sharedFolderId, members);&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Nov 2016 18:40:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194299#M8768</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-14T18:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194387#M8789</link>
      <description>&lt;P&gt;hey @Greg , thanks for the code now i able to share a folder, but i think the next step is to mount the folder at the added member, &amp;nbsp;i want to do it automaticly from sharing can i ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 12:04:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194387#M8789</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-15T12:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194467#M8793</link>
      <description>&lt;P&gt;Yes, as long as you're authorized as the&amp;nbsp;receiving user you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_MountFolderAsync_1.htm" target="_self"&gt;MountFolderAsync&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to mount the shared folder in their account.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 18:46:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194467#M8793</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-15T18:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194497#M8799</link>
      <description>&lt;P&gt;okay, i get it but how to get the share id is it the same way like we share the folder or i just need to use asyncidjob is complete ?, and why when i try to share file "add member selector "method that you gave to me is not working, its always return with null. and how to &amp;nbsp;change its level of acces&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Async Sub ShareFileToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ShareFileToolStripMenuItem.Click
        For Each C As ListViewItem In listfile.SelectedItems

            Dim sharefile = A.Sharing.GetFileMetadataAsync(direktori.Text &amp;amp; "/" &amp;amp; C.Text)
            Dim sharefileid = sharefile.Result.Id
            MessageBox.Show(sharefileid)

            Dim member = {New AddMember(New MemberSelector.Email("vincencia.ratna@gmail.com"))}
            Await A.Sharing.AddFileMemberAsync(file:=sharefileid, members:=member)
        Next
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the next question is how we change folder &amp;nbsp;member policy ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:20:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194497#M8799</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-16T08:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194597#M8811</link>
      <description>&lt;P&gt;The&amp;nbsp;MountFolderAsync method takes a shared folder ID, which is the same as the&amp;nbsp;sharedFolderId value from my code sample.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListMountableFoldersAsync_1.htm" target="_self"&gt;ListMountableFoldersAsync&lt;/A&gt;/&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListMountableFoldersContinueAsync_1.htm" target="_self"&gt;ListMountableFoldersContinueAsync&lt;/A&gt;&amp;nbsp;to list the folders available to mount in an account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your latest sample instead seems to just be getting the ID of a file, not a shared folder ID. Also, it appears you're trying to use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFileMemberAsync_1.htm" target="_self"&gt;AddFileMemberAsync&lt;/A&gt;, which is different from&amp;nbsp;AddFolderMemberAsync anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The AddFileMemberAsync method does take a file path or ID. Here's a sample for&amp;nbsp;AddFileMemberAsync that works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var members = new[] { new MemberSelector.Email("email@example.com") };
await client.Sharing.AddFileMemberAsync ("/test.txt", members);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What specifically wasn't working for you? One thing I notice that may be a problem in your code is that you're building an array of&amp;nbsp;AddMember, but&amp;nbsp;AddFileMemberAsync just takes an array of MemberSelector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 19:22:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194597#M8811</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-16T19:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194652#M8832</link>
      <description>&lt;P&gt;okay greg, your code work, now my problem is &amp;nbsp;why i cant share mp3 ? , are there some file format that dropbox api doesnt support to share ?, and&amp;nbsp;now i stil try to show the list of mountable folder, and mount it as reciever. i confuse how to retrieve the list. this is the las feature of my basic dropbox vb application, i interested to upgrade my application further with more robust API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the question is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. what file extension dropbox support to add member beside txt ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. how to get the list of mountable folder -&amp;gt; get the share id -&amp;gt; and mount it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 08:33:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194652#M8832</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-17T08:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194702#M8836</link>
      <description>&lt;P&gt;1) The file extension doesn't matter. You can share any file type. Are you getting an error when trying to share a different file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) You can&amp;nbsp;&lt;SPAN&gt;use &lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListMountableFoldersAsync_1.htm" target="_self"&gt;ListMountableFoldersAsync&lt;/A&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListMountableFoldersContinueAsync_1.htm" target="_self"&gt;ListMountableFoldersContinueAsync&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to list the folders available to mount in an account. You can then use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_MountFolderAsync_1.htm" target="_self"&gt;MountFolderAsync&lt;/A&gt;&amp;nbsp;to mount folders using the returned&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/forums/replypage/board-id/101000014/message-id/SharedFolderMetadata.SharedFolderId" target="_self"&gt;SharedFolderMetadata.SharedFolderId&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 17:48:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194702#M8836</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-17T17:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194742#M8839</link>
      <description>1. Hi greg, when i try to add member to a jpg file it's return with dropbox api exception 1, is it some thing wrong or i must use share link ?.&lt;BR /&gt;&lt;BR /&gt;2. Yes i know, the ricght code is listmountablefolderasync but the code i still confuse how to implement at code a cause this list is different with listfile async&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:14:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194742#M8839</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-17T22:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How we share folder and file ?, via dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194757#M8841</link>
      <description>1. What exception are you getting specifically?&lt;BR /&gt;&lt;BR /&gt;2. What do you have so far? What are you stuck on?</description>
      <pubDate>Thu, 17 Nov 2016 22:45:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194757#M8841</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-17T22:45:21Z</dc:date>
    </item>
  </channel>
</rss>

