Please see examples below.
Install the latest version with
composer require jecksolovyev/brandbank-soap-api-client
Component works with PHP 7.1 or above.
Bugs and feature request are tracked on GitHub
require_once __DIR__ . '/vendor/autoload.php';
// initiate the API
$api = new BrandbankSOAPAPIClient\BrandbankSOAPAPIClient(
new BrandbankSOAPAPIClient\Authenticator\HeaderGuidAuthenticator('XXXX')
);
$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
}
$response = $api->callGetUnsentProductData();
$message = $response->getUnsentProductDataResult()->getMessage(); // get Message object
// assuming you've previously called $message = $api->callGetUnsentProductData()->getUnsentProductDataResult()->getMessage()
$api->callAcknowledgeMessage($message->getId());
This component is licensed under the MIT License - see the LICENSE
file for details