<?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: Problem calling API  from PHP in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-calling-API-from-PHP/m-p/269209#M15872</link>
    <description>The Dropbox PHP you're using here uses API v1, which is retired, so it will no longer work:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank"&gt;https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll need to migrate to API v2. We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/communitysdks" target="_blank"&gt;https://www.dropbox.com/developers/documentation/communitysdks&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or, you can call the HTTPS endpoints themselves:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation&lt;/A&gt;</description>
    <pubDate>Mon, 19 Mar 2018 20:37:26 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-03-19T20:37:26Z</dc:date>
    <item>
      <title>Problem calling API  from PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-calling-API-from-PHP/m-p/269208#M15871</link>
      <description>&lt;P&gt;I make the authentication step and got the accesstoken as well.&lt;/P&gt;&lt;P&gt;now I want to start an API call so I wrote the below code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Include the Dropbox SDK libraries&lt;BR /&gt;require_once "dropbox-sdk/Dropbox/autoload.php";&lt;BR /&gt;use \Dropbox as dbx;&lt;BR /&gt;$accessToken="XXXXXXXXXXXXXXXXXXXXXXX";&lt;BR /&gt;echo "Step 1 &amp;lt;br&amp;gt;";&lt;BR /&gt;$dbxClient = new dbx\Client($accessToken, "updashboard-test");&lt;BR /&gt;echo "Step 2 &amp;lt;br&amp;gt;".var_dump($dbxClient);&lt;BR /&gt;$accountInfo = $dbxClient-&amp;gt;getAccountInfo();&lt;BR /&gt;echo "Step 3 &amp;lt;br&amp;gt;";&lt;BR /&gt;var_dump($accountInfo);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it passed Step 1 and 2 but stoped on step 3 and notting desplayed. plese see the below my screen shot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step 1&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;object(Dropbox\Client)#2 (6) { ["accessToken":"Dropbox\Client":private]=&amp;gt; string(64) "XXXXX" ["clientIdentifier":"Dropbox\Client":private]=&amp;gt; string(16) "updashboard-test" ["userLocale":"Dropbox\Client":private]=&amp;gt; NULL ["apiHost":"Dropbox\Client":private]=&amp;gt; string(15) "api.dropbox.com" ["contentHost":"Dropbox\Client":private]=&amp;gt; string(23) "api-content.dropbox.com" ["host"]=&amp;gt; object(Dropbox\Host)#3 (3) { ["api":"Dropbox\Host":private]=&amp;gt; string(15) "api.dropbox.com" ["content":"Dropbox\Host":private]=&amp;gt; string(23) "api-content.dropbox.com" ["web":"Dropbox\Host":private]=&amp;gt; string(15) "&lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;" } } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step 2&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I canged AccessToken to XXXX on the above codes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;please let me know why it is like this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-calling-API-from-PHP/m-p/269208#M15871</guid>
      <dc:creator>hossein</dc:creator>
      <dc:date>2019-05-29T09:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling API  from PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-calling-API-from-PHP/m-p/269209#M15872</link>
      <description>The Dropbox PHP you're using here uses API v1, which is retired, so it will no longer work:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank"&gt;https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll need to migrate to API v2. We don't have an official PHP SDK for Dropbox API v2, but you can use a third party library:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/communitysdks" target="_blank"&gt;https://www.dropbox.com/developers/documentation/communitysdks&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or, you can call the HTTPS endpoints themselves:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation&lt;/A&gt;</description>
      <pubDate>Mon, 19 Mar 2018 20:37:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-calling-API-from-PHP/m-p/269209#M15872</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-19T20:37:26Z</dc:date>
    </item>
  </channel>
</rss>

