dotsasteriskdots/swagger-client

1.0.1 2016-09-24 10:02 UTC

This package is not auto-updated.

Last update: 2024-09-18 19:02:00 UTC


README

Hackathon的Web API规格书

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

  • API版本:0.9
  • 构建日期:2016-09-24T07:36:11.528Z
  • 构建包:class io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.4.0及以上版本

安装和用法

Composer

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

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

然后运行composer install

手动安装

下载文件并包含autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit lib/Tests

入门

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

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

$api_instance = new Swagger\Client\Api\DefaultApi();
$object_id = "object_id_example"; // string | オブジェクトID
$object_value = new \Swagger\Client\Model\UserObjectValue(); // \Swagger\Client\Model\UserObjectValue | オブジェクト登録データ

try {
    $result = $api_instance->addObjectValueUsingPOST($object_id, $object_value);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addObjectValueUsingPOST: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于https://bcd-web.net/

模型文档

授权文档

所有端点均不需要授权。

作者