<?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: In PHP : How to detect that DropBox won't hang? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/In-PHP-How-to-detect-that-DropBox-won-t-hang/m-p/39511#M1226</link>
    <description>&lt;P&gt;I assume that when you pass an invalid authorization code to &lt;CODE&gt;finish&lt;/CODE&gt;, it raises an exception. So wrap the call in a &lt;CODE&gt;try&lt;/CODE&gt;/&lt;CODE&gt;catch&lt;/CODE&gt; and handle that exception.&lt;/P&gt;</description>
    <pubDate>Sun, 22 Feb 2015 01:22:26 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-02-22T01:22:26Z</dc:date>
    <item>
      <title>In PHP : How to detect that DropBox won't hang?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/In-PHP-How-to-detect-that-DropBox-won-t-hang/m-p/39510#M1225</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I'm following the example PHP for authentication  - no problem.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;you create a link for them to go to DropBox page&lt;/LI&gt;
&lt;LI&gt;They "allow" and are given a authorization code&lt;/LI&gt;
&lt;LI&gt;they paste that into your awaiting code &lt;/LI&gt;
&lt;LI&gt;you can the call  : list($accessToken, $dropboxUserId) = $webAuth-&amp;gt;finish($authCode);
to obtain $accessToken.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;BUT if the user DOES NOT authenticate and obtain a valid authorisation code from the dropbox page - &lt;BR /&gt;
and they paste junk into your code AND you then call the above list(.... &lt;/P&gt;

&lt;P&gt;DropBox does not return at all and a blank screen is displayed.&lt;/P&gt;

&lt;P&gt;I've tried everything to detect that it's OK to make the call - but can't find anything that would indicate $authCode is not genuine and a crash will follow.&lt;/P&gt;

&lt;P&gt;Any ideas....???&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:44:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/In-PHP-How-to-detect-that-DropBox-won-t-hang/m-p/39510#M1225</guid>
      <dc:creator>Kevin P.22</dc:creator>
      <dc:date>2019-05-29T09:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: In PHP : How to detect that DropBox won't hang?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/In-PHP-How-to-detect-that-DropBox-won-t-hang/m-p/39511#M1226</link>
      <description>&lt;P&gt;I assume that when you pass an invalid authorization code to &lt;CODE&gt;finish&lt;/CODE&gt;, it raises an exception. So wrap the call in a &lt;CODE&gt;try&lt;/CODE&gt;/&lt;CODE&gt;catch&lt;/CODE&gt; and handle that exception.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2015 01:22:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/In-PHP-How-to-detect-that-DropBox-won-t-hang/m-p/39511#M1226</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-02-22T01:22:26Z</dc:date>
    </item>
  </channel>
</rss>

