<?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 folder with team members using dropbox api v2.0 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280105#M16877</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/690627"&gt;@itsrainman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to take a look at the docs for the &lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFolderMemberAsync.htm" target="_self"&gt;AddFolderMemberAsync()&lt;/A&gt; method. It takes an &lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AddFolderMemberArg.htm" target="_self"&gt;AddFolderMemberArg&lt;/A&gt;&amp;nbsp;as it's parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I'd try constructing a new AddFolderMemberArg, passing that in, and seeing if things work a little better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 19:59:47 GMT</pubDate>
    <dc:creator>chirstius</dc:creator>
    <dc:date>2018-06-12T19:59:47Z</dc:date>
    <item>
      <title>Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278595#M16686</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an app that will run on a internal remote server. The app 'listens' for XML files being generated by our BMS system and then processes these as required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next add on for the app, it is already running is to make use of the XML files above to create folders, share the folder with team members and then add in files for the team members to modify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Visual Basic and have figuered out to create a folder which then appears in windows explorer. I have put a small delay after the folder creation so that enough time is given for the folder to sync back from dropbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I next want to share it with one of our team members which i assume i will do via thier email address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my code so far is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Shared Sub Main(ByVal args As String())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim GetDetails = Threading.Tasks.Task.Run(CType(AddressOf ProcessingForm.GetID, Func(Of Threading.Tasks.Task)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetDetails.Wait()&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Private Shared Async Function GetID() As Task(Of Threading.Tasks.Task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using dbx = New DropboxClient("My Token")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strFolder As String = "/TempFolder"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim full = Await dbx.Users.GetCurrentAccountAsync()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("{0} - {1}", full.Name.DisplayName, full.Email)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Directory.Exists("C:\Users\Somesubfolder\" &amp;amp; strFolder) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' This path is a directory.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Await dbx.Files.CreateFolderAsync(strFolder, False)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.Sleep(1000)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Await ListRootFolder(dbx)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Shared Async Function ListRootFolder(ByVal dbx As DropboxClient) As Threading.Tasks.Task&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim list = Await dbx.Files.ListFolderAsync(String.Empty)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each item In list.Entries.Where(Function(i) i.IsFolder)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("D&amp;nbsp; {0}/", item.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each item In list.Entries.Where(Function(i) i.IsFile)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("F{0,8} {1}", item.AsFile.Size, item.Name)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Async Sub CreateANewFolder(ByVal token As String, ByVal path As String)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using dbx = New DropboxClient(token)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim created = Await dbx.Files.CreateFolderAsync(path)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Using&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/PRE&gt;&lt;P&gt;I run 'Main' which checks I am a user, creates the folder if it does not exisit and then lists all the folders within my dropbox account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone point me in the direction of how to invite team members to this folder so they can edit the files it contains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A code example would be very useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&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, 29 May 2019 09:12:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278595#M16686</guid>
      <dc:creator>itsrainman</dc:creator>
      <dc:date>2019-05-29T09:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278622#M16695</link>
      <description>&lt;P&gt;To share a folder using the .NET SDK, you should use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ShareFolderAsync_1.htm" target="_self"&gt;the&amp;nbsp;ShareFolderAsync method&lt;/A&gt;. Then, you can use the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFolderMemberAsync_1.htm" target="_blank"&gt;AddFolderMemberAsync&lt;/A&gt; method to invite users to it, e.g., by specifying their email in a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_MemberSelector_Email__ctor.htm" target="_blank"&gt;MemberSelector.Email&lt;/A&gt;&amp;nbsp;in an &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_AddMember__ctor_1.htm" target="_blank"&gt;AddMember&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid I don't have sample code for this, but you would use the same dbx client, and access these methods in dbx.Sharing. The documentation linked above covers the expected parameters/types.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:59:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278622#M16695</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-01T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278655#M16703</link>
      <description>&lt;P&gt;Many thanks for the response. I have looked and coded these but without the actual code that fits within the functions or an example thereof I'm at a loss. I think I understand the function characteristics but not how to call them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So If we used the example, I would pass the function the folder detail, the members to share with etc. But how this is a processed is what I'm at a loss of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 20:19:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278655#M16703</guid>
      <dc:creator>itsrainman</dc:creator>
      <dc:date>2018-06-01T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278935#M16721</link>
      <description>&lt;P&gt;Calling these functions would work the same way as the ones you already have, e.g., calling&amp;nbsp;ShareFolderAsync would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Await dbx.Sharing.ShareFolderAsync(path)&lt;/PRE&gt;
&lt;P&gt;Please give that a try. If you run in to any issues writing it, post what you have&amp;nbsp;and the details of what you're stuck on (e.g., the error message, etc.)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 18:04:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/278935#M16721</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-04T18:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280101#M16875</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;
&lt;P&gt;Many thanks for taking the time to respond. I've been on other stuff and have only managed to get back to this today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So i used your suggestion.&lt;/P&gt;
&lt;PRE&gt;Await dbx.Sharing.ShareFolderAsync(path)&lt;/PRE&gt;
&lt;P&gt;Replacing path with my folder strFolder (/TempFolder) &lt;/P&gt;
&lt;PRE&gt;Await dbx.Sharing.ShareFolderAsync(strFolder)&lt;/PRE&gt;
&lt;P&gt;As soon as I tested the code it appered in my dropbox information bubble on the taskbar - great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now how do i send other users a link to enable them to share this folder. I assume it something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Await dbx.Sharing.AddFolderMemberAsync(strFolder, "someemail@email.com")&lt;/PRE&gt;
&lt;P&gt;However when i get this there is an error with the message below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System.AggregateException&lt;BR /&gt;&amp;nbsp; HResult=0x80131500&lt;BR /&gt;&amp;nbsp; Message=One or more errors occurred.&lt;BR /&gt;&amp;nbsp; Source=mscorlib&lt;BR /&gt;&amp;nbsp; StackTrace:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task.Wait()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at ....&lt;BR /&gt;&lt;BR /&gt;Inner Exception 1:&lt;BR /&gt;InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IEnumerable`1[Dropbox.Api.Sharing.AddMember]'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think its because its not possible to convert the email address which is a string to an iEnumerable(of AddMember).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do i create a list of email addresses to send the share link to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:37:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280101#M16875</guid>
      <dc:creator>itsrainman</dc:creator>
      <dc:date>2018-06-12T19:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280104#M16876</link>
      <description>I just dug up this old post where I wrote an example of using MemberSelector and AddMember to specify a member to add via an email address:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194299/highlight/true#M8768" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/How-we-share-folder-and-file-via-dropbox-api/m-p/194299/highlight/true#M8768&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It also shows how to check the shared folder job, since you need to supply the shared folder ID, not path, when adding a member. Hope this helps!</description>
      <pubDate>Tue, 12 Jun 2018 19:58:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280104#M16876</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-12T19:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280105#M16877</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/690627"&gt;@itsrainman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to take a look at the docs for the &lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_AddFolderMemberAsync.htm" target="_self"&gt;AddFolderMemberAsync()&lt;/A&gt; method. It takes an &lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Sharing_AddFolderMemberArg.htm" target="_self"&gt;AddFolderMemberArg&lt;/A&gt;&amp;nbsp;as it's parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I'd try constructing a new AddFolderMemberArg, passing that in, and seeing if things work a little better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:59:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280105#M16877</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-06-12T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280117#M16879</link>
      <description>&lt;P&gt;Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Took a look and changed the code as required.&lt;/P&gt;
&lt;PRE&gt;
            Dim shareFolderLaunch = Await dbx.Sharing.ShareFolderAsync(strFolder)
            Dim sharedFolderId As String = ""
            If shareFolderLaunch.IsAsyncJobId Then

                While True
                    Dim shareFolderJobStatus = dbx.Sharing.CheckShareJobStatusAsync(shareFolderLaunch.AsAsyncJobId.Value)
                    If shareFolderJobStatus.IsFaulted Then
                        Console.WriteLine(("Sharing folder failed: " + shareFolderJobStatus.IsFaulted))
                        'return
                    ElseIf shareFolderJobStatus.status = TaskStatus.Running Then
                        Console.WriteLine("Sharing folder in progress...")
                        ' todo: add some delay
                    ElseIf shareFolderJobStatus.IsCompleted Then
                        Console.WriteLine("Sharing folder complete.")
                        sharedFolderId = shareFolderJobStatus.Id
                        Exit While
                    End If


                End While

            ElseIf shareFolderLaunch.IsComplete Then
                sharedFolderId = shareFolderLaunch.AsComplete.Value.SharedFolderId
            Else
                'Return
            End If

            Console.WriteLine(("Shared folder with ID: " + sharedFolderId))
            Dim members = {New AddMember(New MemberSelector.Email("someemail@email.com"))}
            Await dbx.Sharing.AddFolderMemberAsync(sharedFolderId, members)&lt;/PRE&gt;
&lt;P&gt;All functions and I get an email &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just need to code in some error checks for an already shared folder etc, so getting there.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 21:34:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/280117#M16879</guid>
      <dc:creator>itsrainman</dc:creator>
      <dc:date>2018-06-12T21:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/281607#M17237</link>
      <description>&lt;P&gt;Hello again all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have again had some time to spend on this today and I'm a little confused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a folder, this appears in dropbox and is shared with me.&lt;/P&gt;
&lt;P&gt;I next add some files and I can see them if i inspect the folder.&lt;/P&gt;
&lt;P&gt;However if I attempt to share the folder with another user via email I get the error "bad_path/already_shared/.."&lt;/P&gt;
&lt;P&gt;I am just calling the original code that created the folder and then shared it with the first user - me,. How do i add additional users to the share?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 14:07:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/281607#M17237</guid>
      <dc:creator>itsrainman</dc:creator>
      <dc:date>2018-06-22T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/281610#M17238</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/690627"&gt;@itsrainman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share a code sample of your call and the exact (full output) of the error response?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 14:14:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/281610#M17238</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-06-22T14:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Share a folder with team members using dropbox api v2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/281622#M17240</link>
      <description>&lt;P&gt;Actually, re-reading what you posted&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/690627"&gt;@itsrainman&lt;/a&gt;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you&amp;nbsp;have shared the folder via ShareFolderAsync() (what I think you're calling "creating" it) you do not need to call that method again. It's already shared (as the response you're getting implies). You just need to make the call to&amp;nbsp;AddFolderMemberAsync() with any new members you want to share the folder with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you&amp;nbsp;confirm if you're getting the error as a result of additional calls to ShareFolderAsync()? If so,&amp;nbsp;I think that's where the issue lies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 16:09:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Share-a-folder-with-team-members-using-dropbox-api-v2-0/m-p/281622#M17240</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-06-22T16:09:08Z</dc:date>
    </item>
  </channel>
</rss>

