cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox API V2 GetAccountInfo() - C#

Dropbox API V2 GetAccountInfo() - C#

SauravAnand01
Explorer | Level 3

I'm migrating from Dropbox v1 to v2, how can i proceed with GetAccountInfo() to get details such as:
UserName, UserId, QuotaUsed, QuotaAvailable, SharedUse.

How do i get this with v2.

Previously by using v1 it was like:

var accessToken = new OAuthProtocol.OAuthToken(auth_Token, auth_Token_Secret);
var api = new DropboxApi(dropbox_appkey, dropbox_appsecret, accessToken);
var accountInfo = api.GetAccountInfo();

Thank you.

10 Replies 10

SauravAnand
Explorer | Level 4
Hi Greg,

I have removed the extra project which i mentioned earlier and installed Dropbox API in the main project itself, now all is working fine.

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.

But now all working fine. One more query i have about UploadAsync() which i have created a new thread.

Thank you Greg for your support.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    SauravAnand Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?