PHP code example of wored / aikucunsdk-sdk

1. Go to this page and download the library: Download wored/aikucunsdk-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 / aikucunsdk-sdk example snippets



use \Wored\AikucunSdk\AikucunSdk;

$config = [
    'appid'     => '***************',
    'version'   => '3.0',
    'format'    => 'json',
    'appsecret' => '**********************',
    'rootUrl'   => 'https://openapi.aikucun.com',
];
// 海带sdk
$haidai = new AikucunSdk($config);
//拉取订单
$aikucun->request('delivery.haitao.order.list', [
    'adOrderId' => '***************',
    'fields'    => '*',
    "page"      => 1,
    "pageSize"  => 10,
    "status"    => 0
]);
//