Also a request:
<?php
$ch = curl_init('https://api.twitch.tv/kraken/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: OAuth ' . $the_oauth,
'Accept: application/vnd.twitchtv.v5+json'
));
$result = curl_exec($ch);
curl_close($ch);
$result = json_decode($result);
print_r($result);
Will give you details about the oAuth token (validity etc). (I have a chrome plugin to override/send headers)
For example
