fabianblum/cryo-fall-statistics-api-client

0.0.2.2 2021-07-09 09:45 UTC

This package is auto-updated.

Last update: 2024-09-09 16:52:40 UTC


README

这是一个很棒的应用程序!

此PHP软件包由Swagger Codegen项目自动生成

  • API版本:1.0.0
  • 软件包版本:0.0.1
  • 构建软件包:io.swagger.codegen.v3.generators.php.PhpClientCodegen

要求

PHP 5.5及更高版本

安装和用法

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/fabianblum/CryoFallStatisticsApiClient.git"
    }
  ],
  "require": {
    "fabianblum/CryoFallStatisticsApiClient": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to//vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

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

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


$apiInstance = new CryoFallStatisticsApiClient\Api\ServerApi(
    // 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
);
$guid = "guid_example"; // string | The Server GUID
$from = "from_example"; // string | Filter date from, format: 2004-02-12T15:19:21+00:00
$to = "to_example"; // string | Filter date to, format: 2004-02-12T15:19:21+00:00

try {
    $result = $apiInstance->getLeaderboardAction($guid, $from, $to);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServerApi->getLeaderboardAction: ', $e->getMessage(), PHP_EOL;
}


$apiInstance = new CryoFallStatisticsApiClient\Api\ServerApi(
    // 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
);
$guid = "guid_example"; // string | The Server GUID

try {
    $result = $apiInstance->getOnlineAction($guid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServerApi->getOnlineAction: ', $e->getMessage(), PHP_EOL;
}
?>

API端点文档

所有URI相对于https://:8071/CryoFallApi/Public/index.php

模型文档

授权文档

Bearer

  • 类型:HTTP bearer身份验证

作者