I have been trying to get the header array for my php curl working. This is the structure of it.
$http_headers = array(
"Authorization: " . base64_encode($app_key . ":" . $app_secret),
"Content-Type: application/x-www-form-urlencoded",
"Dropbox-API-Arg: " . json_encode(array(
'code' => $code,
'grant_type' => 'authorization_code',
'redirect_url' => 'http://localhost:8080/FSUInnovation/ResumeUpload.php'
)));
I get this error:
{"error_description": "No auth function available for given request", "error": "invalid_request"}400
I don't know what particular syntax issue is causing a problem for this particular request. I tried to base it off of my curl for file upload and download.