<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jecksolovyev / brandbank-soap-api-client example snippets
// 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());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.