revenuewire/clients-api-sdk-php

v1.1.1 2018-09-12 18:34 UTC

This package is auto-updated.

Last update: 2024-09-26 07:17:22 UTC


README

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

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

  • API版本:2018-09-12T18:33:43Z
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.4.0及更高版本

安装和用法

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/revenuewire/clients-api-sdk-php.git"
    }
  ],
  "require": {
    "revenuewire/clients-api-sdk-php": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门

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

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

// Configure API key authorization: api_key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');

$api_instance = new Swagger\Client\Api\DefaultApi();
$newClient = new \Swagger\Client\Model\NewClient(); // \Swagger\Client\Model\NewClient | 

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

?>

API端点文档

所有URI相对于https://client-api.sandbox.revenuewire.io

模型文档

授权文档

api_key

  • 类型:API密钥
  • API密钥参数名:x-api-key
  • 位置:HTTP头部

作者