{& quot; int_err_code & quot;: & quot; Сбой аутентификации & quot; & quot; msg & quot;: & quot; неверный тип предоставления & quot;} при попытке получить access_token и organizer_key в citrix api

я получаю {"int_err_code":"Authentication Failed","msg":"Wrong grant type"} пытаюсь получить access_token и organizer_key. Я использую GoToWebinar API.
Вот мой локон:

$http_headers=array(
'Accept:application/json',
'Content-Type:application/x-www-form-urlencoded'
);

$URL = 'https://api.citrixonline.com/oauth/access_token?grant_type=authorization_code'
.'&code='.$response_key
.'&client_id='.$consumer_key;

// send curl post request
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $http_headers);
$response = curl_exec($ch);
curl_close($ch);

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector