API twitch update ? get viewers?

In PHP i can show the Viewers with that Code:

$url = “https://api.twitch.tv/kraken/streams/streamer?client_id=$client_id”;

$result = file_get_contents($url);
$result = json_decode($result, true);

$result[“stream”][“viewers”]

May it help…

1 Like