Skip to content

An easy to use library to access Icecat XML product data

License

Notifications You must be signed in to change notification settings

alexschwarz89/icecatxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SensioLabsInsight Code Climate

icecatxml

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

Install via composer:

{
    "require": {
        "alexschwarz89/icecatxml"
    }
}

Run composer install.

Example usage

Get product data with EAN/UPC

use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleByEAN('EAN');

Get product data by vendor name and MPN

use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleByMPN('ExampleVendor', 'AA12345');

Get product data by Icecat ID

use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleById('27260205');

Specifying the language (optional)

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');

About

An easy to use library to access Icecat XML product data

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages