2017 © Pedro Peláez
 

library php-allegro-webapi

Truly simple PHP client for Allegro WebAPI

image

wiatrogon/php-allegro-webapi

Truly simple PHP client for Allegro WebAPI

  • Friday, August 19, 2016
  • by wiatrogon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-allegro-webapi

Truly simple PHP client for Allegro WebAPI

Just create new client instance and start coding., (*1)

You don't even have to login explicitly, it's done under the hood., (*2)

Point it to sandbox if you like your code tested., (*3)

Disable SOAP_SINGLE_ELEMENT_ARRAYS option, which is set by default, if you like to make your life harder., (*4)

It won't set for you fields that are required by most methods (webapiKey, sessionId, sessionHandle), altough it will attempt to handle expired (1h+) sessions gracefuly., (*5)

Usage:

$client = new AllegroWebAPI($webapiKey, $login, $password);

$params = array(
    'countryId' => AllegroWebAPI::COUNTRY_PL,
    'webapiKey' => $client->webapiKey,
    'packageElement' => 29
);
$client->doGetCatsDataLimit($params);

$params = array(
    'sessionHandle' => $client->sessionHandle,
    'startingPoint' => 12345678910
);
$client->doGetSiteJournal($params);


$sandbox = new AllegroWebAPI($webapiKey, $login, $password,
                             AllegroWebAPI::COUNTRY_PL, TRUE);

$params = array(
    'countryId' => AllegroWebApi::COUNTRY_PL,
    'webapiKey' => $sandbox->webapiKey,
    'packageElement' => 10
);

$sandbox->doGetCatsDataLimit($params);  

The Versions

19/08 2016

dev-master

9999999-dev

Truly simple PHP client for Allegro WebAPI

  Sources   Download

The Requires

  • php >=5.2
  • ext-soap *

 

by Piotr Jakubik

soap allegro

19/08 2016

0.0.1

0.0.1.0

Truly simple PHP client for Allegro WebAPI

  Sources   Download

The Requires

  • php >=5.2
  • ext-soap *

 

by Piotr Jakubik

soap allegro