Hello
I'am trying to do a very simple thing with no result. I just try to use the V2 API with PHP cURL. Nb I a m very new on the subject...
According to the documentation I expect to receive the list of the file from my dropbox. But I do not receive anything the var_dump result is false.
Does anayone as an Idea? (I hide the $token value)
$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'));
try{
$result = curl_exec($ch);
} catch (Exception $e) {
echo 'Exception reçue : ', $e->getMessage(), "\n";
}
var_dump($result);
print_r($result);
$array = json_decode(trim($result), TRUE);
print_r($array);
curl_close($ch);