PHP code example of wored / suning-sdk

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

    

wored / suning-sdk example snippets



use \Wored\SuningSdk\SuningSdk;

$config = [
    'appKey'    => '****************',
    'appSecret' => '**********************',
    "rootUrl"   => 'https://open.suning.com',
];
//苏宁SDK
$suning = new SuningSdk($config);
//获取物流
$ret = $suning->request('suning.custom.logisticcompany.query',[
    "logisticCompany" => [
       'pageSize' => 10,
       'pageNo'   => 1
    ]
]);