詹姆斯·鲁斯52/teamcity-php-client

2018.1.2 2020-12-26 20:15 UTC

This package is auto-updated.

Last update: 2024-09-27 04:35:05 UTC


README

未提供描述(由Swagger Codegen生成 https://github.com/swagger-api/swagger-codegen

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

  • API版本:2018.1
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.5及更高版本

安装与使用

Composer

要通过Composer安装绑定,请在composer.json中添加以下内容:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/james.rus52/teamcity-php-client.git"
    }
  ],
  "require": {
    "james.rus52/teamcity-php-client": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照安装过程进行操作,然后运行以下命令:

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

$apiInstance = new TeamCityClient\Api\AgentApi(
    // 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()
);
$agent_locator = "agent_locator_example"; // string | 

try {
    $apiInstance->deleteAgent($agent_locator);
} catch (Exception $e) {
    echo 'Exception when calling AgentApi->deleteAgent: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于https://:8111

模型文档

授权文档

基本

  • 类型:HTTP基本认证

作者