Hi,
I used this code for getting information about my stream (without the Authorization line). since May you need app access token, so I generated the token and I changed my code but I don’t get informations anymore:
$clientid = 'MY_CLIENT_ID';
$headers = [
'Client-ID: '.$clientid.'',
'Authorization: Bearer MY_ACCESS_TOKEN',
];
$handle = curl_init('https://api.Twitch.tv/helix/streams?user_login=MY_USERNAME');
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($handle);
echo $response;
I just get:
{"data":[],"pagination":{}}
whats wrong ?