bmlt-enabled/bmlt-root-server-php-client

1.0.4 2023-09-24 00:32 UTC

This package is auto-updated.

Last update: 2024-09-24 02:37:15 UTC


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

模型

授权

为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