I just want a list of the users characters. It seams to be authenticating fine.
$code = $_GET['code'];
$curl_handle = curl_init();
$post = [
'access_token' => $code
];
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $post);
curl_setopt($curl_handle, CURLOPT_URL, "https://eu.api.blizzard.com/profile/user/wow/");
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, ["Battlenet-Namespace: dynamic-eu"]);
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, ["Accept: application/json"]);
$response = curl_exec($curl_handle);
print_r($response);
I just print a 1, nothing else.