An easy-to-use Wrapper for the Ieceat API to access product data provided by Icecat. It should be compatible from PHP 5.5+
Install via composer:
{
"require": {
"alexschwarz89/icecatxml"
}
}
Run composer install
.
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleByEAN('EAN');
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleByMPN('ExampleVendor', 'AA12345');
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleById('27260205');
The default langauge is "DE", to change this, set the optional parameter $lang, e.g.
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleById('27260205', 'US');