simplissimetwitch/api-twitch

v1.0 2019-06-01 22:32 UTC

This package is auto-updated.

Last update: 2024-09-16 20:40:26 UTC


README

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