mehr-it / otto-products-api-client
使用 Swagger 生成的 Otto 产品 API 的 PHP 客户端
1.0.1
2020-12-14 10:34 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-14 18:53:17 UTC
README
管理您的产品数据,发送图片等等。
此 PHP 包由 Swagger Codegen 项目自动生成
- API 版本:V1
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
要求
PHP 5.5 及以上
安装 & 使用
Composer
要通过 Composer 安装绑定,请在 composer.json
中添加以下内容
{
"repositories": [
{
"type": "git",
"url": "https://github.com/mehr-it/otto-products-api-client.git"
}
],
"require": {
"mehr-it/otto-products-api-client": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/./vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照 安装过程 操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new MehrIt\OttoProductsApiClient\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 都相对于 /
模型文档
- ActiveStatus
- ActiveStatusListRequest
- AdditionalRequirement
- Attribute
- AttributeDefinition
- Brand
- CategoryGroup
- CategoryGroups
- Delivery
- Link
- Logistics
- MarketPlaceStatus
- MarketPlaceStatusApiResult
- MarketPlaceStatusError
- MarketPlaceStatusLink
- MediaAsset
- MonetaryAmount
- NormPriceInfo
- OnlineStatus
- OnlineStatusListRequest
- OnlineStatusListResponse
- PackingUnit
- Pricing
- ProductDescription
- ProductProcessProgress
- ProductProcessResultLink
- ProductVariation
- ProductVariationApiResult
- Sale
授权文档
所有端点均不需要授权。