Hi,
I am trying to download a file from my dropbox app, I have tried the cURL code in postman it works with no issues:
https://www.dropbox.com/developers/documentation/http/documentation#files-download
I have created the cURL as php and am running it on my server, but it doesn't work, I keep getting the "cat" returned to me.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://content.dropboxapi.com/2/files/download');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = 'Authorization: Bearer ' . $token;
$headers[] = 'Dropbox-API-Arg: {"path":"' . $in_filepath . '"}';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
curl_close($ch);
var_dump ($result);

Any ideas what I have done wrong?
Thanks for your time.