<?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: V2 API MembersAddAsync in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192017#M8486</link>
    <description>&lt;P&gt;Perfet! This works. Thank you so much!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 23:49:19 GMT</pubDate>
    <dc:creator>schek</dc:creator>
    <dc:date>2016-10-25T23:49:19Z</dc:date>
    <item>
      <title>V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191832#M8430</link>
      <description>&lt;P&gt;I am adding a team member using .net Dropbox.Api class library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not figure a way to get IsSuccess or IsUserAlreadyOnTeam properties after MembersAddAsync is called. Since MembersAddAsync method returns the Task type, the only information I can got from the call is IsComplete.&lt;/P&gt;&lt;P&gt;How is it possible to determine if adding a member operation was succesful?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:28:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191832#M8430</guid>
      <dc:creator>schek</dc:creator>
      <dc:date>2019-05-29T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191843#M8438</link>
      <description>&lt;P&gt;You should poll &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Team_Routes_TeamTeamRoutes_MembersAddJobStatusGetAsync_1.htm" target="_self"&gt;MembersAddJobStatusGetAsync&lt;/A&gt;&amp;nbsp;after &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Team_Routes_TeamTeamRoutes_MembersAddAsync.htm" target="_self"&gt;MembersAddAsync&lt;/A&gt;&amp;nbsp;to get the result.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:31:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191843#M8438</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-24T18:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191859#M8447</link>
      <description>&lt;P&gt;Hi Greg, Thank you so much for your reply!&lt;/P&gt;&lt;P&gt;Do you have a sample code on how to get a pollArg parameter from this call?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var Result = await client.Team.MembersAddAsync(iemember);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;await client.Team.MembersAddJobStatusGetAsync(?);&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 21:53:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191859#M8447</guid>
      <dc:creator>schek</dc:creator>
      <dc:date>2016-10-24T21:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191865#M8452</link>
      <description>&lt;P&gt;I don't have a sample available, but you'll want to use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/P_Dropbox_Api_Team_MembersAddLaunch_IsAsyncJobId.htm" target="_self"&gt;MembersAddLaunch.IsAsyncJobId&lt;/A&gt;&amp;nbsp;to check if the &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Team_MembersAddLaunch.htm" target="_self"&gt;MembersAddLaunch&lt;/A&gt;&amp;nbsp;you got from &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Team_Routes_TeamTeamRoutes_MembersAddAsync.htm" target="_self"&gt;MembersAddAsync&lt;/A&gt;&amp;nbsp;is an async job ID, and then use &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/P_Dropbox_Api_Team_MembersAddLaunch_AsAsyncJobId.htm" target="_self"&gt;MembersAddLaunch.AsAsyncJobId&lt;/A&gt;&amp;nbsp;to get the &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Team_MembersAddLaunch_AsyncJobId.htm" target="_self"&gt;MembersAddLaunch.AsyncJobId&lt;/A&gt;, which you can pass to &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Team_Routes_TeamTeamRoutes_MembersAddJobStatusGetAsync_1.htm" target="_self"&gt;MembersAddJobStatusGetAsync&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 23:07:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191865#M8452</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-24T23:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191977#M8467</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Unfortunately the Value of IsAsyncJobID is false and AsAsyncJobID is NULL, IsComplete is true after the call.&lt;/P&gt;&lt;P&gt;Not sure how could I get those values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 18:39:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191977#M8467</guid>
      <dc:creator>schek</dc:creator>
      <dc:date>2016-10-25T18:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191999#M8475</link>
      <description>If IsComplete is true to begin with, you don't need to call MembersAddJobStatusGetAsync, since the operation already completed. Instead, you'd just use MembersAddLaunch.AsComplete to get the added member result.&lt;BR /&gt;&lt;BR /&gt;So, to summarize, when you call MembersAddAsync, the operation will either complete immediately, or if not, it will give you a job ID that you can use with MembersAddJobStatusGetAsync to eventually get the result.</description>
      <pubDate>Tue, 25 Oct 2016 21:10:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/191999#M8475</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-25T21:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192010#M8481</link>
      <description>&lt;P&gt;It looks like the way to access IsSuccess property from AsComplete is:&lt;/P&gt;&lt;P&gt;new System.Collections.Generic.Mscorlib_CollectionDebugView&amp;lt;Dropbox.Api.Team.MemberAddResult&amp;gt;(Result.AsComplete.Value).Items[0].IsSuccess&lt;/P&gt;&lt;P&gt;But it gives me the error: 'Mscorlib_CollectionDebugView&amp;lt;T&amp;gt;' is inaccessible due to its protection level.&lt;BR /&gt;Is there something else I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&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>Tue, 25 Oct 2016 22:18:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192010#M8481</guid>
      <dc:creator>schek</dc:creator>
      <dc:date>2016-10-25T22:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192013#M8483</link>
      <description>&lt;P&gt;You can do something like this:&lt;/P&gt;
&lt;PRE&gt;var membersAddLaunch = await this.client.Team.MembersAddAsync(newMembers);
if (membersAddLaunch.IsComplete) {
    Console.WriteLine ("Adding members is complete.");
    foreach (var memberAdd in membersAddLaunch.AsComplete.Value) {
        if (memberAdd.IsSuccess) {
            Console.WriteLine ("Successfully added:");
            Console.WriteLine (memberAdd.AsSuccess.Value.Profile.Email);
        } else {
            Console.WriteLine (memberAdd);
        }
    }
} else if (membersAddLaunch.IsAsyncJobId) {
    Console.WriteLine ("Adding member via async job with job ID...");
    Console.WriteLine (membersAddLaunch.AsAsyncJobId.Value);
    // todo: poll MembersAddJobStatusGetAsync to get the result
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2016 22:48:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192013#M8483</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-25T22:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: V2 API MembersAddAsync</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192017#M8486</link>
      <description>&lt;P&gt;Perfet! This works. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 23:49:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/V2-API-MembersAddAsync/m-p/192017#M8486</guid>
      <dc:creator>schek</dc:creator>
      <dc:date>2016-10-25T23:49:19Z</dc:date>
    </item>
  </channel>
</rss>

