chico-rei/gollog-api

自动生成Swagger

v0.3.0 2020-02-26 19:56 UTC

This package is auto-updated.

Last update: 2024-08-27 05:39:22 UTC


README

以简单快捷的方式,了解如何连接和消费所有必要的业务信息。

环境

当前集成网关的环境分为以下两个环境:
     QA:用于开发新集成和与客户及合作伙伴进行测试的环境。
   Prod:包含所有已认证服务的生产环境。

附加信息

开发者中心提供了所有公开API的完整文档,包括request/response示例、模型以及直接在总线上进行测试的可能性。

目前我们的中心通过两个集成域名进行分离:
    - 账户
         当需要时提供认证服务。
    - 销售
         提供追踪、报价、会议记录和授权文档的使用服务。
    - 运营
         提供运营数据库的查询服务。
(*)根据使用的端点,某些信息是必须的,例如应用/客户的标识符和令牌。

有关如何使用的疑问,请联系br-operations@ttinteractive.com

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

要求

PHP 5.5及更高版本

安装与使用

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@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 Swagger\Client\Api\AccountApi(
    // 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()
);
$company_key = "company_key_example"; // string | IATA company code \"example G1\"
$model = new \Swagger\Client\Model\Model(); // \Swagger\Client\Model\Model | Sigin model with login information

try {
    $result = $apiInstance->accountSignIn($company_key, $model);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountApi->accountSignIn: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于http://localhost/api

模型文档

授权文档

基本

  • 类型:HTTP基本认证

作者