$url = 'https://edge.qiwi.com/person-profile/v1/profile/current?authInfoEnabled=true';
$header = array();
$header[] = 'Accept: application/json';
$header[] = 'Content-Type: application/json';
$header[] = 'Authorization: Bearer '.$token;
$crl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($crl, CURLOPT_HTTPHEADER,$headr);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($crl, CURLOPT_POST,true);
$rest = curl_exec($crl);
var_dump($rest);
curl_close($crl);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($crl, CURLOPT_HTTPHEADER,$headr);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($crl, CURLOPT_POST,true);