Googling twitch.tv API showed this stuff:
https://api.twitch.tv/kraken/I absolutely didn't find any working scripts to use as examples.
Here's how to work with that API:
Example is Lance's channel:
//$hue = file_get_contents('https://api.twitch.tv/kraken/channels/twilight_zne');
$hue = file_get_contents('https://api.twitch.tv/kraken/streams/twilight_zne');
//$hue = file_get_contents('https://api.twitch.tv/kraken/channels/twilight_zne/videos');
$hue = json_decode($hue);
print_r($hue);
You can get any of the link received from these pages to get that array with new links.
Some kind of self-documented API.
Looks interesting and quite easy, but requires much time again.
Does anybody want to get this?
What we need is script: requested params are links to streamers, result is a page with list of videos, ordered by popularity, with embedded videos, number of viewers, names, descriptions, etc.
To add beatiful block with that to our site.