<?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 Convert V1 User to V2 User With V2 BasicAccount Details in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233354#M12737</link>
    <description>&lt;P&gt;We have a set of applications that have been using the Dropbox V1 API and the users' Display Name, Token Value and Secret Value have been stored in the DB. We are now wanting to seamless convert the users' accounts across to the V2 API, without the users having to reauthenticate their accounts via the Dropbox website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have achieved converting the V1 Token and Secret to a V2 Token using the&amp;nbsp;Api.Auth.TokenFromOauth1Async method. So we now have the V2 Token value only returned by this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do we retrieve all the users' other details (BasicAccount) from just having the V2 Token? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would appear that the GetAccountAsync method would return the desired user data, such as: Uid, Display Name, etc. However, the input parameter for this call is the Uid, but we only have the V2 AccessToken available.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:20:40 GMT</pubDate>
    <dc:creator>DavidPaynter</dc:creator>
    <dc:date>2019-05-29T09:20:40Z</dc:date>
    <item>
      <title>Convert V1 User to V2 User With V2 BasicAccount Details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233354#M12737</link>
      <description>&lt;P&gt;We have a set of applications that have been using the Dropbox V1 API and the users' Display Name, Token Value and Secret Value have been stored in the DB. We are now wanting to seamless convert the users' accounts across to the V2 API, without the users having to reauthenticate their accounts via the Dropbox website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have achieved converting the V1 Token and Secret to a V2 Token using the&amp;nbsp;Api.Auth.TokenFromOauth1Async method. So we now have the V2 Token value only returned by this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do we retrieve all the users' other details (BasicAccount) from just having the V2 Token? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would appear that the GetAccountAsync method would return the desired user data, such as: Uid, Display Name, etc. However, the input parameter for this call is the Uid, but we only have the V2 AccessToken available.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233354#M12737</guid>
      <dc:creator>DavidPaynter</dc:creator>
      <dc:date>2019-05-29T09:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert V1 User to V2 User With V2 BasicAccount Details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233386#M12738</link>
      <description>You can instead use GetCurrentAccountAsync to get the linked user's account information (i.e., for the user identified by the access token you use for the call), without specifying a user ID:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetCurrentAccountAsync.htm" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetCurrentAccountAsync.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So, call that with each access token you need to associate with user information.</description>
      <pubDate>Fri, 21 Jul 2017 19:31:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233386#M12738</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-21T19:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert V1 User to V2 User With V2 BasicAccount Details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233660#M12756</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The GetCurrentAccountAsync method returns FullAccount class - which &lt;STRONG&gt;does not&lt;/STRONG&gt; include the User's personal information such as Name and Email, so that method doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What method do I call to return the Account Class and/or the Name Class?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 16:06:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233660#M12756</guid>
      <dc:creator>DavidPaynter</dc:creator>
      <dc:date>2017-07-24T16:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert V1 User to V2 User With V2 BasicAccount Details</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233668#M12759</link>
      <description>&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Users_FullAccount.htm" target="_self"&gt;FullAccount&lt;/A&gt;&amp;nbsp;is a subclass of &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_Users_Account.htm" target="_self"&gt;Account&lt;/A&gt;, which does include &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/P_Dropbox_Api_Users_Account_Email.htm" target="_self"&gt;Email&lt;/A&gt;&amp;nbsp;and &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/P_Dropbox_Api_Users_Account_Name.htm" target="_self"&gt;Name&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var account = await this.client.Users.GetCurrentAccountAsync();
Console.WriteLine(account.Name.DisplayName);
Console.WriteLine(account.Email);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 16:13:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Convert-V1-User-to-V2-User-With-V2-BasicAccount-Details/m-p/233668#M12759</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-24T16:13:54Z</dc:date>
    </item>
  </channel>
</rss>

