bmlt-enabled / bmlt-root-server-php-client
BMLT管理员API文档
1.0.4
2023-09-24 00:32 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
README
BMLT管理员API文档
安装与使用
要求
PHP 7.4 及以上版本。也应与PHP 8.0 兼容。
Composer
要通过Composer安装绑定,请将以下内容添加到 composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/bmlt-enabled/bmlt-root-server-php-client.git" } ], "require": { "bmlt-enabled/bmlt-root-server-php-client": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门
请遵循安装流程,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: bmltToken $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OpenAPI\Client\Api\RootServerApi( // 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(), $config ); try { $apiInstance->authLogout(); } catch (Exception $e) { echo 'Exception when calling RootServerApi->authLogout: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI都是相对于 https://:8000/main_server
模型
- AuthenticationError
- AuthorizationError
- ConflictError
- ErrorTest
- Format
- FormatBase
- FormatCreate
- FormatPartialUpdate
- FormatTranslation
- FormatUpdate
- Meeting
- MeetingBase
- MeetingCreate
- MeetingPartialUpdate
- MeetingUpdate
- NotFoundError
- RootServer
- RootServerBase
- RootServerBaseStatistics
- RootServerBaseStatisticsMeetings
- RootServerBaseStatisticsServiceBodies
- ServerError
- ServiceBody
- ServiceBodyBase
- ServiceBodyCreate
- ServiceBodyPartialUpdate
- ServiceBodyUpdate
- Token
- TokenCredentials
- User
- UserBase
- UserCreate
- UserPartialUpdate
- UserUpdate
- ValidationError
授权
为API定义的认证方案
bmltToken
- 类型:
OAuth
- 流程:
password
- 授权URL: ``
- 作用域: N/A
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包由OpenAPI Generator项目自动生成
- API版本:
1.0.0
- 包版本:
1.0.4
- 包版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen