<?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: How do I work with Client.AccountInfo? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188394#M8012</link>
    <description>&lt;P&gt;Are you by chance using&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-js" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-js&lt;/A&gt;? (In general, it would probably help if you told people what library you're actually using.)&lt;/P&gt;
&lt;P&gt;Assuming you are, AccountInfo is a class. You'll need an instance of that class.&lt;/P&gt;
&lt;P&gt;I think you're looking for code like this (completely untested):&lt;/P&gt;
&lt;PRE&gt;client.getAccountInfo(function (err, accountInfo) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (err) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("ERROR: " + err);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("Email: " + accountInfo.email);&lt;BR /&gt;    }&lt;BR /&gt;});&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Jun 2016 01:44:36 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2016-06-07T01:44:36Z</dc:date>
    <item>
      <title>How do I work with Client.AccountInfo?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188393#M8011</link>
      <description>&lt;P&gt;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 &lt;A href="https://www.dropbox.com/developers-v1/datastore/docs/js" target="_blank" rel="nofollow noreferrer"&gt;these docs&lt;/A&gt;. Anyway, I currently have a &lt;STRONG&gt;var client&lt;/STRONG&gt; as a &lt;STRONG&gt;new Dropbox.Client()&lt;/STRONG&gt; with the public key passed in, and a &lt;STRONG&gt;client.authenticate()&lt;/STRONG&gt; 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. &lt;STRONG&gt;client.AccountInfo.email&lt;/STRONG&gt; didn't seem to work, so how would I go about doing this?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188393#M8011</guid>
      <dc:creator>Andy</dc:creator>
      <dc:date>2019-05-29T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I work with Client.AccountInfo?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188394#M8012</link>
      <description>&lt;P&gt;Are you by chance using&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-js" rel="nofollow noreferrer"&gt;https://github.com/dropbox/dropbox-js&lt;/A&gt;? (In general, it would probably help if you told people what library you're actually using.)&lt;/P&gt;
&lt;P&gt;Assuming you are, AccountInfo is a class. You'll need an instance of that class.&lt;/P&gt;
&lt;P&gt;I think you're looking for code like this (completely untested):&lt;/P&gt;
&lt;PRE&gt;client.getAccountInfo(function (err, accountInfo) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (err) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("ERROR: " + err);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("Email: " + accountInfo.email);&lt;BR /&gt;    }&lt;BR /&gt;});&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 01:44:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188394#M8012</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-06-07T01:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I work with Client.AccountInfo?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188395#M8013</link>
      <description>&lt;P&gt;Yup, that's the library. Totally forgot to mention that in my post. Sorry about that.&lt;/P&gt;

&lt;P&gt;I completely missed the .getAccountInfo() in either documentation. That seems to work perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 02:26:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-work-with-Client-AccountInfo/m-p/188395#M8013</guid>
      <dc:creator>Andy</dc:creator>
      <dc:date>2016-06-07T02:26:58Z</dc:date>
    </item>
  </channel>
</rss>

