<?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: Dropbox API V2 GetAccountInfo() - C# in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241388#M13447</link>
    <description>&lt;P&gt;Thank you for the example.&lt;BR /&gt;&lt;BR /&gt;I have installed Dropbox API v2 library in a project which target framework is 4.0 and calling GetCurrentAccountAsync() as you have suggested then i'm getting exception like "Could not load file or assembly 'Dropbox.Api, Version=4.0.0.0, Culture=neutral, PublicKeyToken=310f0e82fbb45d01' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"&lt;BR /&gt;&lt;BR /&gt;Do i need to change target framework to 4.5 or is there any way to fix this exception. If i will have to change framework then it will be major change for my project.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 13:04:53 GMT</pubDate>
    <dc:creator>SauravAnand01</dc:creator>
    <dc:date>2017-09-13T13:04:53Z</dc:date>
    <item>
      <title>Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241341#M13441</link>
      <description>&lt;P&gt;I'm migrating from Dropbox v1 to v2, how can i proceed with GetAccountInfo() to get details such as:&lt;BR /&gt;UserName, UserId, QuotaUsed, QuotaAvailable, SharedUse.&lt;BR /&gt;&lt;BR /&gt;How do i get this with v2.&lt;BR /&gt;&lt;BR /&gt;Previously by using v1 it was like:&lt;/P&gt;&lt;PRE&gt;var accessToken = new OAuthProtocol.OAuthToken(auth_Token, auth_Token_Secret);
var api = new DropboxApi(dropbox_appkey, dropbox_appsecret, accessToken);
var accountInfo = api.GetAccountInfo();&lt;/PRE&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241341#M13441</guid>
      <dc:creator>SauravAnand01</dc:creator>
      <dc:date>2019-05-29T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241365#M13444</link>
      <description>&lt;P&gt;Using&amp;nbsp;the &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_self"&gt;Dropbox API v2 .NET SDK&lt;/A&gt;, you can get the account information like this using GetCurrentAccountAsync and GetSpaceUsageAsync:&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;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetSpaceUsageAsync.htm" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetSpaceUsageAsync.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:11:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241365#M13444</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-13T11:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241368#M13445</link>
      <description>Hi Greg,&lt;BR /&gt;&lt;BR /&gt;Thanks for your prompt response. Can you please provide a code block/example of any of the above method call so that i can proceed with my other various API calls and complete my migration from v1 to v2.&lt;BR /&gt;&lt;BR /&gt;Only one code block or example will be really helpful.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 13 Sep 2017 11:29:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241368#M13445</guid>
      <dc:creator>SauravAnand01</dc:creator>
      <dc:date>2017-09-13T11:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241385#M13446</link>
      <description>There's an example of using GetCurrentAccountAsync here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L213" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L213&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Calling GetSpaceUsageAsync works similarly, but with a different return type that contains the space information instead.</description>
      <pubDate>Wed, 13 Sep 2017 12:46:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241385#M13446</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-13T12:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241388#M13447</link>
      <description>&lt;P&gt;Thank you for the example.&lt;BR /&gt;&lt;BR /&gt;I have installed Dropbox API v2 library in a project which target framework is 4.0 and calling GetCurrentAccountAsync() as you have suggested then i'm getting exception like "Could not load file or assembly 'Dropbox.Api, Version=4.0.0.0, Culture=neutral, PublicKeyToken=310f0e82fbb45d01' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"&lt;BR /&gt;&lt;BR /&gt;Do i need to change target framework to 4.5 or is there any way to fix this exception. If i will have to change framework then it will be major change for my project.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 13:04:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241388#M13447</guid>
      <dc:creator>SauravAnand01</dc:creator>
      <dc:date>2017-09-13T13:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241417#M13448</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_self" rel="nofollow noopener noreferrer"&gt;Dropbox API v2 .NET SDK&lt;/A&gt; &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet#support-platforms" target="_self"&gt;officially supports&amp;nbsp;.NET Framework 4+&lt;/A&gt;, so you shouldn't need to upgrade to 4.5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How exactly did you install it? Also, can you confirm that you installed the latest version (currently v4.3.1)?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 15:16:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241417#M13448</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-13T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241489#M13451</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one of my winform project (framework 4.0) then added one more project name "dropboxV2" (&lt;SPAN&gt;framework&amp;nbsp;&lt;/SPAN&gt;4.0) to the same solution and set this project output type as "Class Library". I went to package manager console then&amp;nbsp;run "Install-Package Dropbox.Api", after completion i got "Successfully installed 'Dropbox.Api 4.3.1' to dropboxV2".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a&amp;nbsp;class like in newly added project:&lt;/P&gt;&lt;PRE&gt;public async void GetCurrentAccount(string accessToken)
{
     using (var client = new DropboxClient(accessToken))
      {
           var fullAccount = await client . 
            Users.GetCurrentAccountAsync();               
      }
}&lt;/PRE&gt;&lt;P&gt;Now i'm accessing above method from my main project as:&lt;/P&gt;&lt;PRE&gt;dropboxV2.DropboxHelper helper = new dropboxV2.DropboxHelper();
helper.GetCurrentAccount(access_token); // here i'm getting exception&lt;/PRE&gt;&lt;P&gt;What i'm doing wrong here? Please help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 05:14:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241489#M13451</guid>
      <dc:creator>SauravAnand</dc:creator>
      <dc:date>2017-09-14T05:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241600#M13457</link>
      <description>Thanks! Can you try installing the SDK in both projects?&lt;BR /&gt;&lt;BR /&gt;Also, I believe you'll need to at least install System.Net.Http.</description>
      <pubDate>Thu, 14 Sep 2017 17:57:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241600#M13457</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-14T17:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241646#M13460</link>
      <description>No, i have managed to install Dropbox.Api v2 into my main project itself and System.Net.Http is installed too.&lt;BR /&gt;&lt;BR /&gt;Thanks for your support.</description>
      <pubDate>Fri, 15 Sep 2017 05:27:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241646#M13460</guid>
      <dc:creator>SauravAnand</dc:creator>
      <dc:date>2017-09-15T05:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241701#M13464</link>
      <description>Apologies, I'm not sure I follow. Did you try installing the library into both of the projects you mentioned? Is it working now?</description>
      <pubDate>Fri, 15 Sep 2017 14:40:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/241701#M13464</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-15T14:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API V2 GetAccountInfo() - C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/242211#M13503</link>
      <description>Hi Greg,&lt;BR /&gt;&lt;BR /&gt;I have removed the extra project which i mentioned earlier and installed Dropbox API in the main project itself, now all is working fine.&lt;BR /&gt;&lt;BR /&gt;It was a conflict between Dll's of the both project. Previously v1 was referenced in my main project and v2 is referenced into another project, and i was calling another project's function from my main project. Due to this i was getting "Could not load file or assembly" exception.&lt;BR /&gt;&lt;BR /&gt;But now all working fine. One more query i have about UploadAsync() which i have created a new thread.&lt;BR /&gt;&lt;BR /&gt;Thank you Greg for your support.</description>
      <pubDate>Tue, 19 Sep 2017 11:43:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-V2-GetAccountInfo-C/m-p/242211#M13503</guid>
      <dc:creator>SauravAnand</dc:creator>
      <dc:date>2017-09-19T11:43:27Z</dc:date>
    </item>
  </channel>
</rss>

