yoerioptr/tabt-api-client
Composer 安装命令:
composer require yoerioptr/tabt-api-client
包简介
Helper library for the TabT API by Frenoy. For more information visit 'http://api.frenoy.net/'
README 文档
README
The TabT API Client is a helper library for Frenoy's TabT API
Setup
Basic setup to get you started using the client.
First of all, install the package using Composer
composer require yoerioptr/tabt-api-client
Instantiate the TabT Api Client as shown below
use Yoerioptr\TabtApiClient\Client\Client; use Yoerioptr\TabtApiClient\Entries\CredentialsType; use Yoerioptr\TabtApiClient\Tabt; // Instantiate the client $client = new Client(); // Optionally you can provide your credentials $credentials = new CredentialsType('username', 'password'); $client->setCredentials($credentials); // Instantiate the TabT Api Client $tabt = new Tabt($client);
Making Requests
Executing requests makes use of repositories, which can easily be accessed from the TabT helper class.
$testResponse = $tabt->test()->info();
All usable requests can be found here
统计信息
- 总下载量: 186
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-07