vxura / ts3audiobot-api
MyLoc-Reseller API的全功能实现
1.0.0
2023-03-07 21:11 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ^9.5.0
README
这个支持PHP 7.2+的库允许您与VPNResellers-API进行通信。
完整的API文档可以在这里找到!
入门指南
推荐使用 Composer 进行安装!
在项目根目录中执行以下操作
$ composer require vexura/ts3audiobot-api
或者将以下内容添加到您的 composer.json
文件中
{ "require": { "vexura/ts3audiobot-api": "^1.0" } }
然后执行安装
$ composer install --no-dev
示例
创建VPNResellersAPI主对象
<?php // Require the autoloader require_once 'vendor/autoload.php'; // Use the library namespace use TS3AudioBotAPI\TS3AudioBotAPI; // Then simply pass your API-Token when creating the API client object. $client = new TS3AudioBotAPI('host','API-Token'); // Then you are able to perform a request var_dump($client->server()->show(1, 1)); ?>