What method I must to use for getting information about my channel? For example, I wanna get access to the list of my subscribers via php, or js? What I must to do at first, second, etc… And is it possible without OAuth token?
I use simple code, it’s my first querry. It’s an example from first page on new api dev tut,
but I need more, as I said before… I need to get subs list of my chan. Thx.
<?php
$channelsApi = 'https://api.twitch.tv/helix/streams';
$channelName = 'cName';
$clientId = 'cId';
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_HTTPHEADER => array(
'Client-ID: ' . $clientId,
'game_id: 33214'
),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $channelsApi
));
$response = curl_exec($ch);
curl_close($ch);
$json = json_decode($response, true);
var_dump($json);
?>