Skip to content

SimplissimeTwitch, extensible PHP HTTP client API Twitch

Notifications You must be signed in to change notification settings

alexcaussades/SimplissimeTwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimplissimeTwitch, PHP API TWITCH

Installing SimplissimeTwitch

The recommended way to install SimplissimeTwitch is through Composer.

Next, run the Composer command to install the latest stable version of SimplissimeTwitch:

php composer.phar require SimplissimeTwitch/apitwitch

After installing, you need to require Composer's autoloader

require 'vendor/autoload.php';

You can then later update SimplissimeTwitch using composer:

php composer.phar update

SimplissimeTwitch is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.

  • Simple interface for building query strings, POST requests, streaming large uploads, streaming large downloads, using HTTP cookies, uploading JSON data, etc...

Change information on the class

/** Information of amended */
     const Streamer_Name = 'Name_Streamer'; //Replace valeur
     const Api_Twitch_ID = 'Api_Id_Twitch'; //Replace valeur
     const USER_ID_TWITCH = 'Id_Twitch'; //Replace valeur
require 'vendor/autoload.php';

use \SimplissimeTwitch\ApiTwitch as api;
$ui = new api();

id streamer :

$ui->getUsers('_id')

name streamer

$ui->getUsers('display_name')

total of follows :

$ui->follow('_total')

title of Live :

$ui->getstatus()

name of game :

$ui->getgame()

listing followers of streamer:

$ui->followListe()

Help and docs