Я новичок в PHP, я застрял при создании токена oAuth. Я получаю сообщение об ошибке
{"error_description": "Указанный вами client_id неверен.", "Error": "invalid_client"} 1
Я использую Справка по следующему URL http://developer.manheim.com/# / pages / authentication # prepareAuthorizationHeader
$key = 'my-key';
$secret = 'my-secret';
$url = 'https://api.manheim.com/oauth2/token.oauth2';
$base64Key = base64_encode($key.''.$secret);
$request_headers = array();
$request_headers[] = 'authorization: Basic '.$base64Key;
$request_headers[] = 'content-type: application/x-www-form-urlencoded';
//$request_headers = 'grant_type=client_credentials&scope=APP1%3AABC%20APP@%3ACDE'
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_headers);
curl_setopt($ch, CURLOPT_AUTOREFERER, true );
curl_setopt($ch, CURLOPT_POST,1);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
любая помощь будет оценена