PHP code example of thinksvip / lazada-sdk

1. Go to this page and download the library: Download thinksvip/lazada-sdk 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/ */

    

thinksvip / lazada-sdk example snippets




    use Lazada\LazadaAPI;
    use Lazada\Lazop\LazopRequest;
    use Lazada\Object\Response;

    // 获取授权信息
     $API = (new LazadaAPI('access_token', 'url', 'appkey', 'appSecret'));
    // 组装请求订单列表数据
    $r = LazopRequest::getOrder('563268962662');

    // 发起请求 获取数据
    /** @var Response $response */
    $response = $API->GetOrder($r);
    
    $address_billing = $response->order->address_billing;
    
    print_r($address_billing);die();