ahhussein / afterbuy-sdk
Fork of AfterbuySDK
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 14
pkg:composer/ahhussein/afterbuy-sdk
Requires
- guzzlehttp/guzzle: ~6.0
- jms/serializer: ^1.1
- monolog/monolog: ~1.12
This package is not auto-updated.
Last update: 2025-10-26 11:45:01 UTC
README
Require the bundle and its dependencies with composer:
$ composer require next-sentence/afterbuy-sdk
Usage
<?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.
Dependencies
jms/serializer- Allows you to easily serialize, and deserialize data of any complexityguzzlehttp/guzzle- Guzzle is a PHP HTTP client librarymonolog/monolog- Monolog lib