<?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: Error in call to API function &amp;quot;sharing/list_folders&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/343433#M19838</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The solution link is not working, can you please help to understand what was the fix?&lt;/P&gt;&lt;P&gt;I am facing the same issue?&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 08:21:07 GMT</pubDate>
    <dc:creator>vijaysingh109</dc:creator>
    <dc:date>2019-05-08T08:21:07Z</dc:date>
    <item>
      <title>Error in call to API function "sharing/list_folders"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/239028#M13261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;below is my code to get a list of folders, but when I run this code it throws an error. Please see this error.&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;Error in call to API function "sharing/list_folders": request body: could not decode input as JSON&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// My Code
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://api.dropboxapi.com/2/sharing/list_folders");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Authorization: Bearer YOUR_TOKEN'
));
curl_setopt($ch, CURLOPT_POSTFIELDS,
"limit=100&amp;amp;actions=[]");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 17:13:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/239028#M13261</guid>
      <dc:creator>amitsinha</dc:creator>
      <dc:date>2020-05-29T17:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "sharing/list_folders"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/239072#M13266</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/45937861/error-in-call-to-api-function-sharing-list-folders" target="_blank"&gt;https://stackoverflow.com/questions/45937861/error-in-call-to-api-function-sharing-list-folders&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error message indicates that the request body, which is supposed to contain the API call parameters as JSON, could not be successfully read by the&amp;nbsp;Dropbox API as JSON.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That error looks correct in this case, as you're supplying form URL encoded parameters instead of JSON. The JSON would instead look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"{"limit": 100,"actions": []}"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 14:51:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/239072#M13266</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-29T14:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "sharing/list_folders"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/239228#M13281</link>
      <description>&lt;P&gt;Thanks a lot. It's working now.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 12:08:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/239228#M13281</guid>
      <dc:creator>amitsinha</dc:creator>
      <dc:date>2017-08-30T12:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "sharing/list_folders"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/343433#M19838</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The solution link is not working, can you please help to understand what was the fix?&lt;/P&gt;&lt;P&gt;I am facing the same issue?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 08:21:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/343433#M19838</guid>
      <dc:creator>vijaysingh109</dc:creator>
      <dc:date>2019-05-08T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in call to API function "sharing/list_folders"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/343531#M19843</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1087556"&gt;@vijaysingh109&lt;/a&gt;&amp;nbsp;The original StackOverflow question has been deleted, but the question and my answer here still apply.&lt;/P&gt;
&lt;P&gt;If something isn't working for you, please feel free to &lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_self"&gt;open a new thread&lt;/A&gt; with the relevant code and the error/output you're getting so we can take a look.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 16:40:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-call-to-API-function-quot-sharing-list-folders-quot/m-p/343531#M19843</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-05-08T16:40:20Z</dc:date>
    </item>
  </channel>
</rss>

