I would also want to know the new api call bcs thi is my old code and it dosent work anymore.
$link = "http://api.twitch.tv/api/channels/".$username."/access_token";
$cont = json_decode(file_get_contents($link));
$hold = $cont;
$sig = $hold->{"sig"};
$token = $hold->{"token"};
$url = 'https://api.twitch.tv/select/'.$username.'.json?nauthsig='.$sig.';nauth='.$token.'&allow_source=true';
$stream_url = json_decode(file_get_contents($url));
echo '<pre>';
var_dump($stream_url);
echo '</pre>';