I tried to write a curl with a scope but I have always an error come from the application. All the rights are open.
Maybe I do something wrong
$curl = curl_init($this->Url . 'api' . $endpoint);
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_USERAGENT => "MyUserAgent/1.0",
CURLOPT_HTTPHEADER => array("Authorization: Bearer 6a957ad3fec7dc151b8fa9c5dcb7e63a_c56249107a5097e7a69781e892fd883ccd040fc5e37cf2220ec12d2b238aec8d"),
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => array("scope" => "profile")
));
$response = curl_exec($curl);
var_dump($response);
response : { "errorCode": "3S290\/B", "errorMessage": "NO_SCOPES" }"
Thank you.