jecksolovyev/brandbank-soap-api-client
最新稳定版本:1.0.7
Composer 安装命令:
composer require jecksolovyev/brandbank-soap-api-client
包简介
Client to work with Brandbank SOAP API
关键字:
README 文档
README
Please see examples below.
Installation
Install the latest version with
composer require jecksolovyev/brandbank-soap-api-client
Requirements
Component works with PHP 7.1 or above.
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub
First thing comes first
require_once __DIR__ . '/vendor/autoload.php'; // initiate the API $api = new BrandbankSOAPAPIClient\BrandbankSOAPAPIClient( new BrandbankSOAPAPIClient\Authenticator\HeaderGuidAuthenticator('XXXX') );
How to set up your products list
$items = ['3272770099486']; $coverageReport = new RetailerFeedbackReport(new Message(new DateTime())); foreach ($items as $item) { $coverageReport->addItem(new Item($item)); } if ($api->callSupplyCoverageReport($coverageReport)->isSuccess()) { // everything is good, do something meaningful }
How to read new/updated product data from API
$response = $api->callGetUnsentProductData(); $message = $response->getUnsentProductDataResult()->getMessage(); // get Message object
Call acknowledge after feed successfully processed
// assuming you've previously called $message = $api->callGetUnsentProductData()->getUnsentProductDataResult()->getMessage() $api->callAcknowledgeMessage($message->getId());
License
This component is licensed under the MIT License - see the LICENSE file for details
统计信息
- 总下载量: 29.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-14