<?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 From where i can get image from user dropbox and display on browser in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/From-where-i-can-get-image-from-user-dropbox-and-display-on/m-p/322163#M18941</link>
    <description>&lt;P&gt;which api should i use to get image stored in user's dropbox .&lt;/P&gt;&lt;P&gt;i tried using /download using php&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/download \
    --header "Authorization: Bearer " \
    --header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Prime_Numbers.txt\"}&lt;/PRE&gt;&lt;PRE&gt;      $result=$processDB-&amp;gt;getData($sql);

            $api_url = 'https://content.dropboxapi.com/2/files/download'; //dropbox api url
            $filename = $_FILES["file"]['tmp_name'];
            $headers = array('Authorization: Bearer '. $result[0]['token'],
                'Content-Type: application/octet-stream',
                'Dropbox-API-Arg: '.
                json_encode(
                    array(
                        "path"=&amp;gt;  $value['path']
                    )
                )
            );

            $ch = curl_init($api_url);

            curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
            curl_setopt($ch, CURLOPT_POST, true);

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

            $response = curl_exec($ch);
            $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
            echo($response.'&amp;lt;br/&amp;gt;');
            echo($http_code.'&amp;lt;br/&amp;gt;');

            curl_close($ch);&lt;/PRE&gt;&lt;P&gt;this the code i using.&lt;/P&gt;&lt;P&gt;but response all unknow code. Am i using the correct api ? or any better way.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:08:31 GMT</pubDate>
    <dc:creator>lenner90</dc:creator>
    <dc:date>2019-05-29T09:08:31Z</dc:date>
    <item>
      <title>From where i can get image from user dropbox and display on browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/From-where-i-can-get-image-from-user-dropbox-and-display-on/m-p/322163#M18941</link>
      <description>&lt;P&gt;which api should i use to get image stored in user's dropbox .&lt;/P&gt;&lt;P&gt;i tried using /download using php&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/download \
    --header "Authorization: Bearer " \
    --header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Prime_Numbers.txt\"}&lt;/PRE&gt;&lt;PRE&gt;      $result=$processDB-&amp;gt;getData($sql);

            $api_url = 'https://content.dropboxapi.com/2/files/download'; //dropbox api url
            $filename = $_FILES["file"]['tmp_name'];
            $headers = array('Authorization: Bearer '. $result[0]['token'],
                'Content-Type: application/octet-stream',
                'Dropbox-API-Arg: '.
                json_encode(
                    array(
                        "path"=&amp;gt;  $value['path']
                    )
                )
            );

            $ch = curl_init($api_url);

            curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
            curl_setopt($ch, CURLOPT_POST, true);

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

            $response = curl_exec($ch);
            $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
            echo($response.'&amp;lt;br/&amp;gt;');
            echo($http_code.'&amp;lt;br/&amp;gt;');

            curl_close($ch);&lt;/PRE&gt;&lt;P&gt;this the code i using.&lt;/P&gt;&lt;P&gt;but response all unknow code. Am i using the correct api ? or any better way.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/From-where-i-can-get-image-from-user-dropbox-and-display-on/m-p/322163#M18941</guid>
      <dc:creator>lenner90</dc:creator>
      <dc:date>2019-05-29T09:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: From where i can get image from user dropbox and display on browser</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/From-where-i-can-get-image-from-user-dropbox-and-display-on/m-p/322267#M18945</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;The&amp;nbsp;/2/files/download endpoint&lt;/A&gt; is the correct way to retrieve the original file data for a file in the connected user's account. The response is the raw file data itself. You can use that however you want, e.g., save it to your server and serve it back to the user in your web app. If you don't want or need the original file data (the full image quality), you can use &lt;A href="https://www.dropboxforum.com/2/files/get_thumbnail" target="_self"&gt;/2/files/get_thumbnail&lt;/A&gt;&amp;nbsp;instead, which works the same way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:19:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/From-where-i-can-get-image-from-user-dropbox-and-display-on/m-p/322267#M18945</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-09T16:19:07Z</dc:date>
    </item>
  </channel>
</rss>

