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

dev-master 2023-10-20 13:12 UTC

This package is not auto-updated.

Last update: 2024-09-29 06:31:02 UTC


README

eSagu API 用于重新定价 eBay 上的商品。

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

  • API 版本:1.2.14
  • 包版本: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/ebay-re-pricing-api-client-php.git"
    }
  ],
  "require": {
    "e-sagu/ebay-re-pricing-api-client-php": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

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

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

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

$api_instance = new eSagu\EBay\RePricing\V1\Api\BulkEditApi();
$bulk_edit_id = 789; // int | 

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

?>

API 端点文档

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

模型文档

授权文档

jwt

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

作者