jalismrs/stalactite-auth-client

未提供描述(由 Openapi Generator 自动生成 https://github.com/openapitools/openapi-generator)

1.1.2 2021-10-27 14:40 UTC

This package is auto-updated.

Last update: 2024-09-06 22:30:13 UTC


README

未提供描述(由 Openapi Generator 自动生成 https://github.com/openapitools/openapi-generator)

安装与使用

要求

PHP 7.3 及以上版本。理论上也支持 PHP 8.0,但未经过测试。

Composer

要使用 Composer 安装绑定,请将以下内容添加到 composer.json

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/jalismrs/stalactite-auth-client.git"
    }
  ],
  "require": {
    "jalismrs/stalactite-auth-client": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

入门

请遵循 安装过程,然后运行以下命令

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure API key authorization: StalactiteToken
$config = Jalismrs\Stalactite\Client\Auth\Configuration::getDefaultConfiguration()->setApiKey('X-API-TOKEN', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Jalismrs\Stalactite\Client\Auth\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-TOKEN', 'Bearer');


$apiInstance = new Jalismrs\Stalactite\Client\Auth\Api\AuthProvidersApi(
    // 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
);
$uid = 'uid_example'; // string | The uid of the Firebase auth provider to delete

try {
    $apiInstance->deleteFirebaseAuthProvider($uid);
} catch (Exception $e) {
    echo 'Exception when calling AuthProvidersApi->deleteFirebaseAuthProvider: ', $e->getMessage(), PHP_EOL;
}

API 端点

所有 URI 都相对于 https://stalactite.jalis.dev/auth

模型

授权

StalactiteToken

  • 类型: API 密钥
  • API 密钥参数名称: X-API-TOKEN
  • 位置: HTTP 头部

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

关于此包

此 PHP 包由 OpenAPI Generator 项目自动生成

  • API 版本: 1.1.2-dev.42ed8576889f2f3eebd1d7312ea4209214278aaf
    • 包版本: 1.1.2-dev
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen