e-sagu / amzn-re-pricing-api-client-php

dev-master 2021-05-19 11:28 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:14:41 UTC


README

eSagu API 用于在亚马逊重新定价商品。

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

  • API版本:2.0.0
  • 包版本:1.0.0
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.4.0 及以上版本

安装和用法

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/e-sagu/amzn-re-pricing-api-client-php.git"
    }
  ],
  "require": {
    "e-sagu/amzn-re-pricing-api-client-php": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to/eSaguAmznRePricingAPIV1/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门

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

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

// Configure API key authorization: jwt
eSagu\Amzn\RePricing\V1\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// eSagu\Amzn\RePricing\V1\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new eSagu\Amzn\RePricing\V1\Api\RepricingBusinessPriceSettingsApi();

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

?>

API端点文档

所有URI都是相对于https://api.esagu.de/amzn/repricing/v1

模型文档

授权文档

jwt

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

作者