james.rus52/nexus-php-client

3.26.3 2020-12-26 20:11 UTC

This package is auto-updated.

Last update: 2024-09-27 03:57:16 UTC


README

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

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

  • API版本:3.26.1-02
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.5及更高版本

安装 & 使用

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/jamesRUS52/nexus-php-client.git"
    }
  ],
  "require": {
    "james.rus52/nexus-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 NexusClient\Api\AssetsApi(
    // 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()
);
$id = "id_example"; // string | Id of the asset to delete

try {
    $apiInstance->deleteAsset($id);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->deleteAsset: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI相对于 https:///service/rest/

模型文档

授权文档

所有端点均不需要授权。

作者