2017 © Pedro Peláez
 

library twitchapi

A php API for Twitch.TV

image

impatricklol/twitchapi

A php API for Twitch.TV

  • Saturday, January 24, 2015
  • by impatricklol
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TwitchAPI

Simple PHP Class for the Twitch.tv API, (*1)

{
  "require": {
    "impatricklol/twitchapi": "dev-master"
  }
}

How to use: replace 'reckful' with the stream name you want data from., (*2)

<?php
include 'twitchAPI.php';
$twitch = new twitchAPI('reckful');
$twitch->getData('display_name');
$twitch->getData('game');
?>

if you would like to get data from multiple streams it would be used like:, (*3)

<?php
include 'twitchAPI.php';
$stream_1 = new twitchAPI('reckful');
$stream_2 = new twitchAPI('sodapoppin');
$stream_1->getData('display_name');
$stream_2->getData('display_name');
?>

getData Types: each getData type is pulled from an array at twitch Currently available data types: display_name - stream username status - current 'title' of the stream game - Current game being played, (*4)

NOTE: This API is not finished.. and more features will be added.. this script was built on PHP V 5.6.2 if it doesn't work i suggest upgrading to this version :shit::tada:, (*5)

The Versions

24/01 2015

dev-master

9999999-dev

A php API for Twitch.TV

  Sources   Download

The Requires

  • php >=5.3.0