Hey there! I have empty results from this query. They used to work fine last year. What am I doing wrong?
<?php
$TOKENT = "xxx";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.twitch.tv/helix/channels/followers?broadcaster_id=180523751&first=1");
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Client-ID: xxx',
'Authorization: Bearer ' . $TOKENT,
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
var_dump($result);
curl_close($ch);
$json = json_decode($result, true);
$likes = $json['total'];
?>
string(39) “{“total”:128,“data”:,“pagination”:{}}”