Try to access the Dropbox v2 API calls, using PHP and a CURL call. Based on the sandbox here https://dropbox.github.io/dropbox-api-v2-explorer/#files_search, the "Show Code" looks like this.
curl -X POST https://api.dropboxapi.com/2/files/search \
--header 'Authorization: Bearer myAccessTokenHere \
--header 'Content-Type: application/json' \
--data '{"path":"/My Cars","query":"\".j\"","start":0,"max_results":50}'
My PHP code looks like this
function performSearch()
{
$cheaders = array("Authorization: Bearer myAccessTokenHere",
'Content-Type: application/json',
'Dropbox-API-Arg: {"path":"/My Cars","query":"\".j\"","start":"0","max_results":"50"}');
$ch = curl_init('https://content.dropboxapi.com/2/files/search');
curl_setopt($ch, CURLOPT_HTTPHEADER, $cheaders);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
echo "\n response = $response";
curl_close($ch);
}
When I execute it, I get
response = {"error": "Not Found"}