how can I implement my client-ID in my request to the twitch API servers via PHP?
This is my current code:
$clientid="xxxxxxxxx";
function is_channel_live($channel)
{
$request = json_decode( @file_get_contents( 'https://api.twitch.tv/kraken/streams/' . $channel ) );
return ( ! is_null( $request->stream ) ) ? TRUE : FALSE;
}
$chan = "shroud";
if (is_channel_live($chan)==true)
echo "Live!!";
else
echo "Offline..";
How would I actually implement the client ID in the request?
May also note that I am very new to the twitch API..