simplissimetwitch/api-twitch
Composer 安装命令:
composer require simplissimetwitch/api-twitch
包简介
Api Twitch PHP Client
关键字:
README 文档
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
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-01