Warcraft II Forum
Warcraft II => Mods & Development => Topic started by: iL on January 13, 2015, 05:58:59 AM
-
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.
-
if you have time to get around to it yes i would be interested
i really think fixing hosting is #1 priority right now and would love to see hosting work for most people first.
-
war2PLoader apparently fixes hosting for most people already.
-
http://www.teamliquid.net/forum/tl-community/390182-twitchtv-custom-stream-list-web-module (http://www.teamliquid.net/forum/tl-community/390182-twitchtv-custom-stream-list-web-module)
Check page 2 (last post) for the updated version. Here is what the script looks like
http://www.maegis.net/test/index.php (http://www.maegis.net/test/index.php)
awesomeness.