You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
DavidPaynter
8 years agoExplorer | Level 3
Convert V1 User to V2 User With V2 BasicAccount Details
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 ...
- 8 years ago
FullAccount is a subclass of Account, which does include Email and Name.
var account = await this.client.Users.GetCurrentAccountAsync(); Console.WriteLine(account.Name.DisplayName); Console.WriteLine(account.Email);
Greg-DB
Dropbox Staff
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:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetCurrentAccountAsync.htm
So, call that with each access token you need to associate with user information.
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetCurrentAccountAsync.htm
So, call that with each access token you need to associate with user information.
DavidPaynter
8 years agoExplorer | Level 3
The GetCurrentAccountAsync method returns FullAccount class - which does not include the User's personal information such as Name and Email, so that method doesn't work.
What method do I call to return the Account Class and/or the Name Class?
- Greg-DB8 years agoDropbox Staff
FullAccount is a subclass of Account, which does include Email and Name.
var account = await this.client.Users.GetCurrentAccountAsync(); Console.WriteLine(account.Name.DisplayName); Console.WriteLine(account.Email);
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,911 PostsLatest Activity: 10 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!