<?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 with the list folder path to retrieve recursive folders in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-the-list-folder-path-to-retrieve-recursive-folders/m-p/255916#M14820</link>
    <description>&lt;P&gt;The "data" you pass up needs to be valid JSON, otherwise the API call will fail with the "could not decode input as JSON" error.&lt;BR /&gt;&lt;BR /&gt;Some of your values are missing pieces such as the opening { or a ,. Also, make sure you use the standard " character, and escape it with a \.&lt;BR /&gt;&lt;BR /&gt;So, here are some valid examples based on what you posted:&lt;BR /&gt;&lt;BR /&gt;--data "{\"path\": \"/hotel_1\"}"&lt;BR /&gt;--data "{\"path\": \"/sop_nifi\"}"&lt;BR /&gt;--data "{\"path\": \"/sop_nifi\", \"recursive:true\"}"&lt;BR /&gt;&lt;BR /&gt;The API Explorer can be helpful for constructing these curl commands: (click "Show Code")&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder" target="_blank"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 18:56:20 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-12-08T18:56:20Z</dc:date>
    <item>
      <title>Problem with the list folder path to retrieve recursive folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-the-list-folder-path-to-retrieve-recursive-folders/m-p/255908#M14818</link>
      <description>&lt;P&gt;Im trying out the V2 ApI and I am having some issues to list all the folders and their content.&lt;/P&gt;&lt;P&gt;So i managed to curl via terminal using this :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder     
	--header "Authorization: Bearer &amp;lt;acces token&amp;gt;”
     	--header "Content-Type: application/json"  
	--data "{\"path\": \"\"}"&lt;/PRE&gt;&lt;P&gt;And it succeeds, it returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{ "entries" : [ &lt;BR /&gt;{ ".tag" : "folder", "name" : "hotel_1", "path_lower" : "/hotel_1", "path_display" : "/hotel_1", "id" : "id:QmI2D_9l9AAAAAAAAAAACA" }, &lt;BR /&gt;{ ".tag" : "folder", "name" : "hotel_2", "path_lower" : "/hotel_2", "path_display" : "/hotel_2", "id" : "id:QmI2D_9l9AAAAAAAAAAACg" }, &lt;BR /&gt;{ ".tag" : "file", "name" : "text1.txt", "path_lower" : "/text1.txt", "path_display" : "/text1.txt", "id" : "id:QmI2D_9l9AAAAAAAAAAADg", "client_modified" : "2017-12-08T11:24:37Z", "server_modified" : "2017-12-08T11:24:40Z", "rev" : "7707ce270", "size" : 7, "content_hash" : "&amp;lt;content code&amp;gt;" } ],&lt;BR /&gt;"cursor" : "&amp;lt;cursor code&amp;gt;", &lt;BR /&gt;"has_more" : false }&lt;/PRE&gt;&lt;P&gt;This is my folder structure:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-12-08 at 19.27.43.png" style="width: 664px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2008i92843509E53FD42B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-12-08 at 19.27.43.png" alt="Screen Shot 2017-12-08 at 19.27.43.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i know i have to adjust the "path" and set "recursive" to true, but whenever i do that, curl does not return anything, not even an error. Or with some tries i got back "could not decode input as json".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so some of the paths i tried are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--data "{\"path\": \”/hotel_1\”}”
--data "\"path\": \"/sop_nifi"}"

--data "\"path\": \"/sop_nifi"\"/recursive:true\"}"



&lt;/PRE&gt;&lt;P&gt;and other variations i cant remember. I read the documentation but just do not seem to grasp the systax for the path variable. Can someone help me out list all the files and folders?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-the-list-folder-path-to-retrieve-recursive-folders/m-p/255908#M14818</guid>
      <dc:creator>sophisty</dc:creator>
      <dc:date>2019-05-29T09:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the list folder path to retrieve recursive folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-the-list-folder-path-to-retrieve-recursive-folders/m-p/255916#M14820</link>
      <description>&lt;P&gt;The "data" you pass up needs to be valid JSON, otherwise the API call will fail with the "could not decode input as JSON" error.&lt;BR /&gt;&lt;BR /&gt;Some of your values are missing pieces such as the opening { or a ,. Also, make sure you use the standard " character, and escape it with a \.&lt;BR /&gt;&lt;BR /&gt;So, here are some valid examples based on what you posted:&lt;BR /&gt;&lt;BR /&gt;--data "{\"path\": \"/hotel_1\"}"&lt;BR /&gt;--data "{\"path\": \"/sop_nifi\"}"&lt;BR /&gt;--data "{\"path\": \"/sop_nifi\", \"recursive:true\"}"&lt;BR /&gt;&lt;BR /&gt;The API Explorer can be helpful for constructing these curl commands: (click "Show Code")&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder" target="_blank"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 18:56:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Problem-with-the-list-folder-path-to-retrieve-recursive-folders/m-p/255916#M14820</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-08T18:56:20Z</dc:date>
    </item>
  </channel>
</rss>

