Hello all,
Sorry I see this topics is in multiple search in this forum but really i don’t find what is my problem.
I try to get a anthoprization code from a user to get an access token.
So in see in the documentation we need to get a code from oauth/authorize.
I doing this in php with this code
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://eu.battle.net/oauth/authorize',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'region: eu',
'response_type: code',
'client_id: XXXXXXXXXXXXXXXXXXXXX',
'redirect_uri: https://XXXXXXXXXXXXX',
'scope: wow.profile',
'state: pingTest'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
After doing this i continue to get a blizzard page with 401 Bad client credentials
My client id is good so i really don’t understand why i don’t get blizzard popup to connect my user