ezmaxinc/ezmax-sdk-php

此API公开了eZmax和eZsign应用程序的所有功能。

1.2.0 2024-04-14 22:56 UTC

README

此API公开了eZmax和eZsign应用程序的所有功能。

如需更多信息,请访问 https://www.ezmax.ca/en/contact

安装与使用

需求

PHP 7.4 及以上版本。也支持 PHP 8.0。

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/ezmaxinc/ezmax-sdk-php.git"
    }
  ],
  "require": {
    "ezmaxinc/ezmax-sdk-php": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

<?php
require_once('/path/to/eZmaxApi/vendor/autoload.php');

入门指南

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

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




$apiInstance = new eZmaxAPI\Api\GlobalCustomerApi(
    // 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()
);
$pksCustomerCode = 'pksCustomerCode_example'; // string
$sInfrastructureproductCode = 'sInfrastructureproductCode_example'; // string | The infrastructure product Code  If undefined, \"appcluster01\" is assumed

try {
    $result = $apiInstance->globalCustomerGetEndpointV1($pksCustomerCode, $sInfrastructureproductCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalCustomerApi->globalCustomerGetEndpointV1: ', $e->getMessage(), PHP_EOL;
}

API 端点

所有URI均相对于 https://prod.api.appcluster01.ca-central-1.ezmax.com/rest

模型

授权

为API定义的认证方案

授权

  • 类型:API密钥
  • API密钥参数名:Authorization
  • 位置:HTTP头部

Bearer

  • 类型:Bearer认证

Presigned

  • 类型:API密钥
  • API密钥参数名:sAuthorization
  • 位置:URL查询字符串

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

support-api@ezmax.ca

关于此包

此PHP包是由OpenAPI Generator项目自动生成的

  • API版本:1.2.0
    • 包版本:1.2.0
    • 生成器版本:7.4.0
  • 构建包:org.openapitools.codegen.languages.PhpClientCodegen