Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm looking to check a user's email and verification status through Client.AccountInfo. I currently use a 3rd party JavaScript Core SDK, but it's syntactically the same as the Datastore JS API, at least the Common section of these docs. Anyway, I currently have a var client as a new Dropbox.Client() with the public key passed in, and a client.authenticate() to go with it. The docs are either worded weirdly, or I'm missing something, but like I said, this SDK is syntactically the same as the Common part of the linked Datastore API. client.AccountInfo.email didn't seem to work, so how would I go about doing this?
Did this post help you? If so, please mark it for some Kudos below.
Did this post fix your issue/answer your question? If so, please press the 'Accept as Solution' button to help others find it.
Did this post fail to resolve your issue? If so, please give us some more information so we can try and help - please remember, we cannot see over your shoulder, so be as descriptive as possible!
Are you by chance using https://github.com/dropbox/dropbox-js? (In general, it would probably help if you told people what library you're actually using.)
Assuming you are, AccountInfo is a class. You'll need an instance of that class.
I think you're looking for code like this (completely untested):
client.getAccountInfo(function (err, accountInfo) {
if (err) {
console.log("ERROR: " + err);
}
else {
console.log("Email: " + accountInfo.email);
}
});
Yup, that's the library. Totally forgot to mention that in my post. Sorry about that.
I completely missed the .getAccountInfo() in either documentation. That seems to work perfectly!
Did this post help you? If so, please mark it for some Kudos below.
Did this post fix your issue/answer your question? If so, please press the 'Accept as Solution' button to help others find it.
Did this post fail to resolve your issue? If so, please give us some more information so we can try and help - please remember, we cannot see over your shoulder, so be as descriptive as possible!
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!