2017 © Pedro Peláez
 

library afterbuy-sdk

The AfterbuySDK provides to interact with the Afterbuy XML API

image

next-sentence/afterbuy-sdk

The AfterbuySDK provides to interact with the Afterbuy XML API

  • Monday, March 5, 2018
  • by next-sentence
  • Repository
  • 3 Watchers
  • 3 Stars
  • 1,902 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 11 % Grown

The README.md

Installation

Require the bundle and its dependencies with composer:, (*1)

$ 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., (*2)

Dependencies

  • jms/serializer - Allows you to easily serialize, and deserialize data of any complexity
  • guzzlehttp/guzzle - Guzzle is a PHP HTTP client library
  • monolog/monolog - Monolog lib

Please support - https://paypal.me/nextsentence :), (*3)

The Versions

05/03 2018

dev-master

9999999-dev http://github.com/next-sentence/afterbuy-sdk

The AfterbuySDK provides to interact with the Afterbuy XML API

  Sources   Download

MIT

The Requires

 

by Petru Binzari

afterbuy