Warcraft II Forum

Warcraft II => Mods & Development => Topic started by: iL on January 13, 2015, 05:58:59 AM

Title: need to make plugin for twitch.tv
Post 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:
Code: [Select]
//$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.
Title: Re: need to make plugin for twitch.tv
Post by: tk[as] on January 15, 2015, 12:13:55 PM
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.
Title: Re: need to make plugin for twitch.tv
Post by: GaNzTheLegend on January 15, 2015, 01:01:30 PM
war2PLoader apparently fixes hosting for most people already.
Title: Re: need to make plugin for twitch.tv
Post by: GaNzTheLegend on January 15, 2015, 08:56:48 PM
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.