Hi,
below is my code to get a list of folders, but when I run this code it throws an error. Please see this error.
Error in call to API function "sharing/list_folders": request body: could not decode input as JSON
Please help.
// 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&actions=[]");