<?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 direct access img PHP in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/direct-access-img-PHP/m-p/237868#M13149</link>
    <description>&lt;P&gt;It is possible to access an img in dropbox direct using php, without using the download API method?&lt;/P&gt;
&lt;P&gt;Or it's only possible to see metadata?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;//see metadata
$folderMetadata = $dbxClient-&amp;gt;getMetadataWithChildren("/");
print_r($folderMetadata&amp;nbsp;["contents"][0]["path"]);
&amp;nbsp;
//dowload file (I dont want to download file to the server to open my img)
$f = fopen("test2.txt", "w+b");
$fileMetadata = $dbxClient-&amp;gt;getFile("/test.txt", $f);
fclose($f);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 17:12:01 GMT</pubDate>
    <dc:creator>intouchbiz</dc:creator>
    <dc:date>2020-05-29T17:12:01Z</dc:date>
    <item>
      <title>direct access img PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/direct-access-img-PHP/m-p/237868#M13149</link>
      <description>&lt;P&gt;It is possible to access an img in dropbox direct using php, without using the download API method?&lt;/P&gt;
&lt;P&gt;Or it's only possible to see metadata?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;//see metadata
$folderMetadata = $dbxClient-&amp;gt;getMetadataWithChildren("/");
print_r($folderMetadata&amp;nbsp;["contents"][0]["path"]);
&amp;nbsp;
//dowload file (I dont want to download file to the server to open my img)
$f = fopen("test2.txt", "w+b");
$fileMetadata = $dbxClient-&amp;gt;getFile("/test.txt", $f);
fclose($f);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:12:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/direct-access-img-PHP/m-p/237868#M13149</guid>
      <dc:creator>intouchbiz</dc:creator>
      <dc:date>2020-05-29T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: direct access img PHP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/direct-access-img-PHP/m-p/237961#M13167</link>
      <description>&lt;P&gt;The SDK you're using uses API v1 which is &lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_self"&gt;deprecated and being retired soon&lt;/A&gt;. You should migrate to &lt;A href="https://www.dropbox.com/developers " target="_self"&gt;API v2&lt;/A&gt; instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We don't have plans for an official PHP SDK for Dropbox API v2, but you can use &lt;A href="https://www.dropbox.com/developers/documentation/communitysdks" target="_self"&gt;a third party library&lt;/A&gt;&amp;nbsp;or, you can call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_self"&gt;the HTTPS endpoints&lt;/A&gt; themselves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, to access file content, you can call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/download&lt;/A&gt;, which will return the file content in the response. You can then do whatever you want with the returned file data, which doesn't have to be saving it to a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can&amp;nbsp;get a temporary link to the file content using&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 18:36:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/direct-access-img-PHP/m-p/237961#M13167</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-21T18:36:53Z</dc:date>
    </item>
  </channel>
</rss>

