after i get the response i cant decode from json not sure why, i am using php but on the print of array only show “int(1)”
$ch2 = curl_init("https://id.twitch.tv/oauth2/token?grant_type=refresh_token&refresh_token=".$arrayToString."&client_id=ea5edl3aletwqktirdeva92z47ge4m&client_secret=");
// setopt
curl_setopt($ch2, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch2, CURLOPT_HTTPHEADER, array(
'Accept: application/vnd.twitchtv.v3+json'
));
$json2 = json_decode(curl_exec($ch2), true);
var_dump($json2);