Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I want to get the account info of the admin of a team. I had the memberId of this admin and that is all.
I get the memberId which is 41 characters long so I cannot use standard dropboxclient.GetAccountAsync()which is used for regular dropbox client.
I noticed MembersGetInfoAsync() but that requires a List of members as parameters. I only had the memberId through admin, how do I only get his information without pulling the whole team, filtering for that id then passing that down to MembersGetInfoAsync() as a list with one entry?
Why do you say you can't use the standard memberId because it's 41 characters long? Is there error output that states there's a problem with the length of the memberId?
If you already have the member ID, I believe you could just create a list (a MembersGetInfoArgs.Members) that has a single item, and pass that to the MembersGetInfoAsync call.
GetAccountAsync takes in AccountId which is 40 characters and I have memberId which is part of a team that is 41 characters, it will result in an exception and throw an error stating that the accountid cannot be greater than 40
Yes, account IDs are 40 characters long. Can you share the code snippet where you get the account ID from the Dropbox API?
Apologies, I was confusing member IDs and account IDs. Account IDs are 40 characters long, but member IDs can be longer or shorter. You can indeed use MembersGetInfoArgs to pass in the member ID you have as a single-item list to MembersGetInfoAsync. Let us know if you have any trouble with that!
Hi there!
If you need more help you can view your support options (expected response time for a 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!