gisevevokoru/ezze-siftuz-products-v2

dev-master 2021-10-26 03:53 UTC

This package is auto-updated.

Last update: 2024-09-26 13:17:50 UTC


README

管理您的产品数据,发送图片等。

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

  • API版本:V2
  • 包版本:v1.0
  • 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen

要求

PHP 5.5 及以上

安装与使用

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "http://github.com/gisevevokoru/ezze-siftuz-products-v2.git"
    }
  ],
  "require": {
    "gisevevokoru/ezze-siftuz-products-v2": "*@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 EzzeSiftuz\ProductsV2\Api\BrandsApi(
    // 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->getBrands();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BrandsApi->getBrands: ', $e->getMessage(), PHP_EOL;
}
?>

API端点文档

所有URI相对于 /

模型文档

授权文档

所有端点均不需要授权。

作者