thinksvip/lazada-sdk

API Framework for https://open.lazada.com/ (Lazada SDK 非官方)

v0.0.1-beta5 2022-03-07 02:29 UTC

README

Features

· 通过此API,可以快速获取 PHP Object

Composer

composer require thinksvip/lazada-sdk:v0.0.1-beta2

Quick Example

Make an API request

<?php

    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();