Author Topic: need to make plugin for twitch.tv  (Read 6997 times)

Online iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1657
    • View Profile
need to make plugin for twitch.tv
« 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.
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline tk[as]

  • Server Admin
  • Dragon
  • *****
  • Posts: 5022
    • View Profile
Re: need to make plugin for twitch.tv
« Reply #1 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.

Offline GaNzTheLegend

  • Best War2 Player Ever
  • Ogre Mage
  • ********
  • Posts: 1745
  • #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU
    • View Profile
    • Kali Hall Of Fame
Re: need to make plugin for twitch.tv
« Reply #2 on: January 15, 2015, 01:01:30 PM »
war2PLoader apparently fixes hosting for most people already.
Kali IGL Stats

Offline GaNzTheLegend

  • Best War2 Player Ever
  • Ogre Mage
  • ********
  • Posts: 1745
  • #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU
    • View Profile
    • Kali Hall Of Fame
Re: need to make plugin for twitch.tv
« Reply #3 on: January 15, 2015, 08:56:48 PM »
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

awesomeness.
« Last Edit: January 15, 2015, 09:02:09 PM by GaNzTheLegend »
Kali IGL Stats