<?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: list_folder issues in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322664#M18965</link>
    <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder endpoint&lt;/A&gt;&amp;nbsp;is &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#rpc-endpoints" target="_self"&gt;an RPC-style endpoint&lt;/A&gt;, meaning it expects the API call parameters as JSON in the request body. In the code you shared, it looks like you're trying to pass the "path" parameter as a parameter to the "ajax" method itself.&lt;/P&gt;
&lt;P&gt;Instead, you probably want to do something like this:&lt;/P&gt;
&lt;PRE&gt; $.ajax({
     url: 'https://api.dropboxapi.com/2/files/list_folder',
     type: 'POST',
     processData: false,
     contentType: 'application/json',
     data: JSON.stringify({"path": "/MIG/Projects/Hippo content Watermark/4K"}),
     headers: {
        "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;",
     },
     success: function (data) {
        console.log(data);
     },
      error: function (error) {
        console.log(error);
     }
 })&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Jan 2019 16:52:26 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-01-11T16:52:26Z</dc:date>
    <item>
      <title>list_folder issues</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322661#M18964</link>
      <description>&lt;P&gt;Hey guys, bare with me... I'm&amp;nbsp;new to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I'm&amp;nbsp;trying to use the list_folder function.&amp;nbsp;when I test my&amp;nbsp;code I get an error of "&lt;SPAN&gt;Error in call to API function "files/list_folder": request body: could not decode input as JSON"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;can you point in the right direction&amp;nbsp;so I can understand and learn what I'm&amp;nbsp;doing wrong...&lt;/P&gt;&lt;P&gt;thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; $.ajax({
 url: 'https://api.dropboxapi.com/2/files/list_folder',
 type: 'POST',
 processData: false,
 contentType: 'application/json',
 path: "/MIG/Projects/Hippo content Watermark/4K",
 headers: {
 "Authorization": "Bearer &amp;lt;REMOVED_FOR_THIS_POST&amp;gt;",
 },
 success: function (data) {
 console.log(data);
 },
  error: function (error) {
 console.log(error);
 }
 })&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322661#M18964</guid>
      <dc:creator>jmccolgan93</dc:creator>
      <dc:date>2019-05-29T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder issues</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322664#M18965</link>
      <description>&lt;P&gt;The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder endpoint&lt;/A&gt;&amp;nbsp;is &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#rpc-endpoints" target="_self"&gt;an RPC-style endpoint&lt;/A&gt;, meaning it expects the API call parameters as JSON in the request body. In the code you shared, it looks like you're trying to pass the "path" parameter as a parameter to the "ajax" method itself.&lt;/P&gt;
&lt;P&gt;Instead, you probably want to do something like this:&lt;/P&gt;
&lt;PRE&gt; $.ajax({
     url: 'https://api.dropboxapi.com/2/files/list_folder',
     type: 'POST',
     processData: false,
     contentType: 'application/json',
     data: JSON.stringify({"path": "/MIG/Projects/Hippo content Watermark/4K"}),
     headers: {
        "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;",
     },
     success: function (data) {
        console.log(data);
     },
      error: function (error) {
        console.log(error);
     }
 })&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:52:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322664#M18965</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-11T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: list_folder issues</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322665#M18966</link>
      <description>&lt;P&gt;thank you Greg! that worked perfectly!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:54:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/list-folder-issues/m-p/322665#M18966</guid>
      <dc:creator>jmccolgan93</dc:creator>
      <dc:date>2019-01-11T16:54:57Z</dc:date>
    </item>
  </channel>
</rss>

