Sellix public API for developers to access merchant resources
- php ^5.3
- php-curl
Install the package through composer.
composer require sellix/php-sdk
<?php
require_once 'vendor/autoload.php';
use \Sellix\PhpSdk\Sellix;
use \Sellix\PhpSdk\SellixException;
// pass <MERCHANT_NAME> only if you need to be authenticated as an additional store
$client = new Sellix("<YOUR_API_KEY>", "<MERCHANT_NAME>");
try {
$products = $client->get_products();
} catch (SellixException $e) {
echo $e->__toString();
}
?>