<p>数据提供 API 允许卖家上传输入文件,下载包括其状态在内的报告和文件,使用 URI 参数过滤报告,以及检索客户服务指标任务详情。</p>
1.0.2
2022-06-27 15:42 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: >=6.2
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-09-27 20:46:53 UTC
README
数据提供 API 允许卖家上传输入文件,下载包括其状态在内的报告和文件,使用 URI 参数过滤报告,以及检索客户服务指标任务详情。
安装与使用
需求
PHP 7.4 及以上版本。也应在 PHP 8.0 上工作。
Composer
要使用 Composer 安装绑定,请将以下内容添加到 composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门
请遵循 安装过程,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: api_auth $config = OpenAPI\EbaySellFeedApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OpenAPI\EbaySellFeedApi\Api\CustomerServiceMetricTaskApi( // 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(), $config ); $accept_language = 'accept_language_example'; // string | Use this header to specify the natural language in which the authenticated user desires the response. $create_service_metrics_task_request = new \OpenAPI\EbaySellFeedApi\Model\CreateServiceMetricsTaskRequest(); // \OpenAPI\EbaySellFeedApi\Model\CreateServiceMetricsTaskRequest | Request payload containing version, feedType, and optional filterCriteria. try { $apiInstance->createCustomerServiceMetricTask($accept_language, $create_service_metrics_task_request); } catch (Exception $e) { echo 'Exception when calling CustomerServiceMetricTaskApi->createCustomerServiceMetricTask: ', $e->getMessage(), PHP_EOL; }
API 端点
所有 URI 都相对于 https://api.ebay.com/sell/feed/v1
模型
- CreateInventoryTaskRequest
- CreateOrderTaskRequest
- CreateServiceMetricsTaskRequest
- CreateTaskRequest
- CreateUserScheduleRequest
- CustomerServiceMetricTaskCollection
- CustomerServiceMetricsFilterCriteria
- DateRange
- Error
- ErrorParameter
- InventoryFilterCriteria
- InventoryTask
- InventoryTaskCollection
- OrderFilterCriteria
- OrderTask
- OrderTaskCollection
- ScheduleTemplateCollection
- ScheduleTemplateResponse
- ServiceMetricsTask
- SupportedConfiguration
- Task
- TaskCollection
- UpdateUserScheduleRequest
- UploadSummary
- UserScheduleCollection
- UserScheduleResponse
授权
api_auth
- 类型:
OAuth
- 流程:
accessCode
- 授权 URL:
https://auth.ebay.com/oauth2/authorize
- 作用域:
- https://api.ebay.com/oauth/api_scope/sell.fulfillment: 查看和管理您的订单履行
- https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly: 此作用域允许已登录用户读取目录数据。
- https://api.ebay.com/oauth/api_scope/sell.inventory: 查看和管理您的库存和出价
- https://api.ebay.com/oauth/api_scope/sell.marketing: 查看和管理您的 eBay 营销活动,例如广告活动和列表促销
- https://api.ebay.com/oauth/api_scope/sell.analytics.readonly: 查看您的销售分析数据,例如性能报告
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此 PHP 包是由 OpenAPI Generator 项目自动生成的
- API 版本:
v1.3.1
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen