2017 © Pedro Peláez
 

library lazada-api-php

Lazada Seller API wrapper

image

zuragan/lazada-api-php

Lazada Seller API wrapper

  • Wednesday, October 25, 2017
  • by arseto
  • Repository
  • 2 Watchers
  • 2 Stars
  • 269 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 46 % Grown

The README.md

PHP Lazada API Wrapper

Unofficial PHP Wrapper for Lazada API, (*1)

Overview

  • Wraps Lazada API in PHP according to example shown here
  • For complete API reference, including how to obtain API key, please go to the official documentation

Installation

~$ composer require zuragan/lazada-api-php

Example Usage

  • GET
//Create API instance
$api = new LazadaAPI($baseUrl);

//Create action using factory, get or post action is supported
$factory = new ActionFactory($userEmail, $userAPIKey);
$action = $factory->getAction('ActionName', [ 'Parameter' => 'ParamValue' ]);

//Execute API Command
$response = $api->get($action);

//debug: dump response
var_dump($response);
  • POST
//Create API instance
$api = new LazadaAPI($baseUrl);

//Create action using factory, get or post action is supported
$factory = new ActionFactory($userEmail, $userAPIKey);
$payload = [
    "Attributes" => [
        "name" => "Example",
        "description" => "Short description",
    ],
];
$action = $factory->postAction('ActionName', [ 'Parameter' => 'ParamValue' ], $payload);

//Execute API Command
$response = $api->post($action);

//debug: dump response
var_dump($response);

Known Limitation(s)

  • Due to PHP array limitation used in post payload when converting to XML format, multiple child element with same name cannot be generated (because PHP array keys must be unique)

Disclaimer

  • This is not an official SDK from Lazada
  • This library may be changed without notice to keep it updated with Lazada's API
  • This library is provided as is, without any warranty and can be broken anytime Lazada create breaking changes in their API.

Contributing

  • Error reporting/issues
    • Use Github's issue tracker
  • Code contribution
    • Fork this repository
    • Create pull request

License

  • MIT

The Versions

25/10 2017

dev-master

9999999-dev

Lazada Seller API wrapper

  Sources   Download

MIT

The Requires

 

by Arseto Nugroho

api wrapper lazada

25/10 2017

v0.1.3

0.1.3.0

Lazada Seller API wrapper

  Sources   Download

MIT

The Requires

 

by Arseto Nugroho

api wrapper lazada

25/10 2017

v0.1.2

0.1.2.0

Lazada Seller API wrapper

  Sources   Download

MIT

The Requires

 

by Arseto Nugroho

api wrapper lazada

23/10 2017

v0.1.1

0.1.1.0

Lazada Seller API wrapper

  Sources   Download

MIT

The Requires

 

by Arseto Nugroho

api wrapper lazada

23/10 2017

v0.1.0

0.1.0.0

Lazada Seller API wrapper

  Sources   Download

MIT

The Requires

 

by Arseto Nugroho

api wrapper lazada