Я получаю Authentication_MissingOrMalformed, правильно получаю токен и назначен в заголовке.
// Curl call for calling graph API
curl_setopt_array($curl, array(
CURLOPT_URL => "https://graph.windows.net/xxxx/users/giri@xxxx.com/memberOf?api-version=1.6",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_PROXY => "xxxxx:8080",
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "api-version=1.0",
// Adding access toker here
CURLOPT_HTTPHEADER => array(
"authorization: Bearer ".$result->access_token,
"cache-control: no-cache",
"content-type: application/x-www-form-urlencoded",
),