War2.ru Slogan
News: New responsive forum theme available!
Click here to switch! More info here!


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

need to make plugin for twitch.tv 1829  3

Administrator Ogre Posts: 1394 Karma: +135/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1394
    • View Profile
*

iL

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.
Server Admin Death Knight Posts: 3397 Karma: +80/-11 *****

tk[as]

  • Server Admin
  • Death Knight
  • *****
  • *
  • Posts: 3397
    • 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.
Best War2 Player Ever Ogre Mage Posts: 1745 Karma: +55/-58 #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU ********

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.
Best War2 Player Ever Ogre Mage Posts: 1745 Karma: +55/-58 #1 on: Kali, Heat, Zone, Kahn, GameStorm, Bnet, RU ********

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.