Hello, for unknown reason this chunk of code is not working for me (PHP). I used the "Generated access token" button to get me one.
$headers = array();
$headers[] = "Authorization: Bearer IFwO9iV...";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, $headers);
curl_setopt($ch, CURLOPT_URL, "https://api.dropbox.com/1/account/info");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$out = curl_exec($ch);
I always get this output: HTTP/1.1 400 Bad Request Server: nginx Date: Wed, 06 Apr 2016 13:20:28 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive X-Dropbox-Request-Id: d72abf... {"error_description": "No auth function available for given request", "error": "invalid_request"}
Please assist.