dev-master
9999999-dev http://github.com/next-sentence/afterbuy-sdkThe AfterbuySDK provides to interact with the Afterbuy XML API
MIT
The Requires
by Petru Binzari
afterbuy
Wallogit.com
2017 © Pedro Peláez
The AfterbuySDK provides to interact with the Afterbuy XML API
Require the bundle and its dependencies with composer:, (*1)
$ composer require next-sentence/afterbuy-sdk
<?php
require_once __DIR__ . './../vendor/autoload.php';
$config = array(
'userId' => 'userid',
'userPass' => 'userpass',
'partnerId' => '123456',
'partnerPass' => '123',
'errorLang' => 'en',
);
$factory = new Ns\Afterbuy\Factory();
$api = $factory->createRequest($config);
try {
$soldItems = $api->getSoldItems();
$result = $soldItems->getResult();
var_dump($result);
} catch (Exception $e) {
echo $e;
}
The response will be an instance of Ns\Afterbuy\Model\UpdateSoldItems\UpdateSoldItemsResponse., (*2)
jms/serializer - Allows you to easily serialize, and deserialize data of any complexityguzzlehttp/guzzle - Guzzle is a PHP HTTP client librarymonolog/monolog - Monolog libPlease support - https://paypal.me/nextsentence :), (*3)
The AfterbuySDK provides to interact with the Afterbuy XML API
MIT
afterbuy