定制 jecksolovyev/brandbank-soap-api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Stable Version

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-14