<?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 Fail to get a file via curl in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409478#M22185</link>
    <description>&lt;P&gt;Soooo.... this has been driving me nuts for the past day or two. I am sure I am missing something obvious, but I have no other paths forward. So here goes. I have created an app with access to an APP FOLDER. I uploaded a few test files to the folder via GUI. I can list the folder contents via curl using the token I created. When I try to get a file, using the file id from the list_folder endpoint, I get a not found error. Code bellow. Please help!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer &amp;lt;TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"\"}"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;...Returns JSON with /App/FOLDER content...&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/file_requests/get  \
    --header "Authorization: Bearer &amp;lt;TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"id\":\"&amp;lt;ID&amp;gt;\"}"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"error_summary": "not_found/...", "error": {".tag": "not_found"}}&lt;/PRE&gt;
&lt;P&gt;????&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2020 14:56:31 GMT</pubDate>
    <dc:creator>RandomDoorUser1872</dc:creator>
    <dc:date>2020-04-13T14:56:31Z</dc:date>
    <item>
      <title>Fail to get a file via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409478#M22185</link>
      <description>&lt;P&gt;Soooo.... this has been driving me nuts for the past day or two. I am sure I am missing something obvious, but I have no other paths forward. So here goes. I have created an app with access to an APP FOLDER. I uploaded a few test files to the folder via GUI. I can list the folder contents via curl using the token I created. When I try to get a file, using the file id from the list_folder endpoint, I get a not found error. Code bellow. Please help!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer &amp;lt;TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"\"}"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;...Returns JSON with /App/FOLDER content...&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/file_requests/get  \
    --header "Authorization: Bearer &amp;lt;TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"id\":\"&amp;lt;ID&amp;gt;\"}"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"error_summary": "not_found/...", "error": {".tag": "not_found"}}&lt;/PRE&gt;
&lt;P&gt;????&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 14:56:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409478#M22185</guid>
      <dc:creator>RandomDoorUser1872</dc:creator>
      <dc:date>2020-04-13T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to get a file via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409503#M22188</link>
      <description>&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#file_requests-get" target="_self" rel="noopener noreferrer"&gt;/2/file_requests/get&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;endpoint is for retrieving the information about a&amp;nbsp;&lt;A href="https://www.dropbox.com/help/files-folders/create-file-request" target="_self" rel="noopener noreferrer"&gt;'file request'&lt;/A&gt;, not a file itself. (A "file request" is a way to receive&amp;nbsp;files from other people.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the data&amp;nbsp;for a particular file, you should instead call&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self" rel="noopener noreferrer"&gt;/2/files/download&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 14:46:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409503#M22188</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-04T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to get a file via curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409515#M22190</link>
      <description>&lt;P&gt;I hate life. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 15:30:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Fail-to-get-a-file-via-curl/m-p/409515#M22190</guid>
      <dc:creator>RandomDoorUser1872</dc:creator>
      <dc:date>2020-04-13T15:30:54Z</dc:date>
    </item>
  </channel>
</rss>

