hey guys im trying to get shared_folder_id from the API and im using the below
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $auth_token, 'Content-Type: application/json'));
//curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($fields));
curl_setopt($ch, CURLOPT_URL, 'https://api.dropboxapi.com/2/sharing/list_folders');
try{
$result = curl_exec($ch);
} catch (Exception $e) {
echo 'Exception reçue : ', $e->getMessage(), "\n";
}
var_dump($result);
however all i get is :
Array ( [error_summary] => missing_scope/ [error] => Array ( [.tag] => missing_scope [required_scope] => sharing.read ) )
despite the app having sharing.read enabled
thanks !