Skip to content

kruegge82/afterbuy-sdk-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Require the bundle and its dependencies with composer:

$ composer require kruegge82/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 complexity
  • guzzlehttp/guzzle - Guzzle is a PHP HTTP client library
  • monolog/monolog - Monolog lib

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages