PHP code example of trungnt309193 / lazop-sdk-php
1. Go to this page and download the library: Download trungnt309193/lazop-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
trungnt309193 / lazop-sdk-php example snippets
use trungnt309193\Lazada\LazopClient;
use trungnt309193\Lazada\LazopRequest;
...
$c = new LazopClient('https://api.lazada.test/rest', '${appKey}', '${appSecret}');
$request = new LazopRequest('/mock/api/get');
$request->addApiParam('api_id',1);
$request->addHttpHeaderParam('cx','test');
var_dump($c->execute($request));
...
bash
composer