PHP code example of ydg / jd-union-open-sdk

1. Go to this page and download the library: Download ydg/jd-union-open-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/ */

    

ydg / jd-union-open-sdk example snippets




use Ydg\JdUnionOpenSdk\JdUnion;

$app = new JdUnion([
    'app_key' => 'your app_key',
    'app_secure' => 'your app_secure',
]);
$app->order->orderRowQuery([
    'pageIndex' => 1,
    'pageSize' => 20,
    'type' => 1,
    'startTime' => date('Y-m-d H:i:s', time() - 300),
    'endTime' => date('Y-m-d H:i:s', time()),
]);