cbatista8a / qvapay-api-client
QvaPay PHP Api 客户端
dev-main
2021-03-16 20:35 UTC
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: >=7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: >=2.12
- phpunit/phpunit: >=8.0
This package is auto-updated.
Last update: 2024-09-17 04:43:43 UTC
README
QvaPay PHP Api 客户端
安装与使用
要求
PHP 7.2 及以上。
Composer
通过 Composer 安装绑定。
运行 composer require cbatista8a/qvapay-api-client
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/QvaPay/vendor/autoload.php');
入门指南
请按照 安装过程 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new QvaPay\Api( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $app_id = 'app_id_example'; // string | App ID $app_secret = 'app_secret_example'; // string | App Secret try { $result = $apiInstance->auth($app_id, $app_secret); print_r($result); } catch (Exception $e) { echo 'Exception when calling Api->auth: ', $e->getMessage(), PHP_EOL; }
API 端点
所有 URI 都是相对于 https://qvapay.com/api/v1
模型
授权
所有端点都不需要授权。
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此 PHP 包是由 OpenAPI Generator 项目自动生成的
- API 版本:
1.0.0
- 包版本:
1.0.0
- 包版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen