<?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 How to verify token correctness after instantiating DbxClient? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-verify-token-correctness-after-instantiating-DbxClient/m-p/199291#M9256</link>
    <description>&lt;P&gt;I'm verifying several things during my component initializitation, one of which is the "state" of the newly initialized DbxClient. Is there any way to determine whether the token passed as a argument is correct or the general host is responding? I would expect methods like "assertTokenCorrectness" or "checkConnectionStatus" in either DbxClientV2 class or any other utilty/helper class. So far the only way to determine things I mentioned is to actually fire method like DbxClientV2.files().listFolder() and check if it throws DbxException.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest, I really doubt there is any suitable method I missed but at least my need would evolve into a feature request &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any tips for better workaround than mine.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:27:25 GMT</pubDate>
    <dc:creator>mlkmn</dc:creator>
    <dc:date>2019-05-29T09:27:25Z</dc:date>
    <item>
      <title>How to verify token correctness after instantiating DbxClient?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-verify-token-correctness-after-instantiating-DbxClient/m-p/199291#M9256</link>
      <description>&lt;P&gt;I'm verifying several things during my component initializitation, one of which is the "state" of the newly initialized DbxClient. Is there any way to determine whether the token passed as a argument is correct or the general host is responding? I would expect methods like "assertTokenCorrectness" or "checkConnectionStatus" in either DbxClientV2 class or any other utilty/helper class. So far the only way to determine things I mentioned is to actually fire method like DbxClientV2.files().listFolder() and check if it throws DbxException.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest, I really doubt there is any suitable method I missed but at least my need would evolve into a feature request &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any tips for better workaround than mine.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-verify-token-correctness-after-instantiating-DbxClient/m-p/199291#M9256</guid>
      <dc:creator>mlkmn</dc:creator>
      <dc:date>2019-05-29T09:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to verify token correctness after instantiating DbxClient?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-verify-token-correctness-after-instantiating-DbxClient/m-p/199298#M9259</link>
      <description>&lt;P&gt;Tokens can be remotely revoked at any time, so the best way to check if a token is still valid is to just try an API call. The &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/users/DbxUserUsersRequests.html#getCurrentAccount--" target="_self"&gt;getCurrentAccount&lt;/A&gt;&amp;nbsp;call is a good choice for this, as it doesn't have any side effects.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:56:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-verify-token-correctness-after-instantiating-DbxClient/m-p/199298#M9259</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-12-23T15:56:19Z</dc:date>
    </item>
  </channel>
</rss>

