PHP code example of abbotton / jddj
1. Go to this page and download the library: Download abbotton/jddj 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/ */
abbotton / jddj example snippets
use Abbotton\Jddj\Application;
......
$config = [
'app_key' => 'xxx',
'app_secret' => 'xxx',
'token' => 'xxx',
'sandbox' => false
];
$app = new Application($config);
// 获取店铺已上传商品列表
$result = $app->pms->querySkuInfos(['pageNo' => 1, 'pageSize' => 20]);
var_dump($result);