bricre/ebay-sdk-commerce-translation
Composer 安装命令:
composer require bricre/ebay-sdk-commerce-translation
包简介
API client generated from OpenAPI definition from eBay's OpenAPI definition
README 文档
README
Code generated from eBay's Swagger file using allansun/openapi-code-generator.
Generated code is well self-documented with proper PHPDoc annotations.
Please refer to eBay's documentation for detailed API behaviour explanation.
Installation
composer require bricre/ebay-api-commerce-translation
You will also need a PSR-18 compatible client see https://docs.php-http.org/en/latest/clients.html
So either use Guzzle (or any other PSR-18 compatible clients)
composer require php-http/guzzle7-adapter
Versioning
This project matches eBay's API versioning.
Due to the restriction of Composer, version number like '2021-01-01' will be changed to '2021.01.01'.
Should you found a matching version not being available. Please contact the author to generate against correct version.
Usage
First you need to create a PSR-18. Then in your business logic you can call API operations directly.
You may also want to check out eBay's document about how to authorize your request.
<?php use Ebay\Sell\Account\Api\Program; $httpClient = new \GuzzleHttp\Client([ 'base_uri' => 'https://api.ebay.com/sell/account/v1/', 'headers'=>[ 'Authorization'=> 'Bearer <accessToken>' ] ]); $api = new Program($httpClient); $programs = $api->getOptedIns();
Author
- Allan Sun - Initial work
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-05-04