vexura / keyhelp-api
KeyHelp API 的完整功能实现
v1.0.0
2022-10-22 13:59 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is auto-updated.
Last update: 2024-09-22 18:02:09 UTC
README
这个 PHP 7.2+ 库允许您与 KeyHelp-API 通信。
您可以在以下位置找到完整的 API 文档 这里!
入门指南
推荐使用 Composer 进行安装!
在您的项目根目录下执行以下命令
$ composer require vexura/keyhelp-api
或者将以下内容添加到您的 composer.json
文件中
{ "require": { "vexura/keyhelp-api": "^1.0" } }
然后执行安装
$ composer install --no-dev
示例
创建 KeyHelpAPI 主对象
<?php // Require the autoloader require_once 'vendor/autoload.php'; // Use the library namespace use KeyHelpAPI\KeyHelpAPI; // Then simply pass your API-Token when creating the API client object. $client = new KeyHelpAPI('API-Token'); // Then you are able to perform a request var_dump($client->server()->getPing()); ?>