aurigma/php-asset-processor-client

PHP API 客户端,用于客户Canvas网络印刷系统的资产处理器服务。

2.0.0 2024-06-14 05:25 UTC

This package is auto-updated.

Last update: 2024-09-14 06:02:08 UTC


README

======================================================

此模块是Customer's Canvas网络印刷系统中的资产处理器服务的PHP API客户端。假设您熟悉其服务并了解如何使用其API。要了解有关Customer's Canvas及其服务的更多信息,请参阅其文档中的入门部分

先决条件

要使用此包,您需要满足以下要求

  • 您必须在Customer's Canvas中有一个账户。

有关其他平台,请参阅Customer's Canvas文档中的后端服务文章。

安装

composer require aurigma/php-asset-processor-client

要求

PHP 7.2及更高版本。

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/aurigma/php-asset-processor-client.git"
    }
  ],
  "require": {
    "aurigma/php-asset-processor-client": "*@dev"
  }
}

然后运行composer install

入门

请按照安装过程进行操作。

通过文档中所述的方式,在您的后端接收访问令牌并将其传递给您的应用程序。

然后运行以下命令

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

$apiInstance = new OpenAPI\Client\Api\BuildInfoApi(
    // 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()
);

try {
    $result = $apiInstance->buildInfoGetInfo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BuildInfoApi->buildInfoGetInfo: ', $e->getMessage(), PHP_EOL;
}
?>

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

Aurigma Inc info@aurigma.com (https://customerscanvas.com)

API 端点

所有URI均相对于https://dm-assetprocessor.azurewebsites.net/

模型