PHP code example of youer / laravel-jd-sdk
1. Go to this page and download the library: Download youer/laravel-jd-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/ */
youer / laravel-jd-sdk example snippets
use JDong\Request\JdUnionGoodsJingfenQueryRequest;
use Youer\LaravelJdSdk\Factory;
$jd = Factory::jingdong();
$req = new JdUnionGoodsJingfenQueryRequest();
$req->setEliteId(2);
$req->setPageIndex(1);
$req->setPageSize(5);
$rr = $jd->execute($req)['jd_union_open_goods_jingfen_query_response']['result'];
return json_decode($rr, true);
shell
composer endor:publish --provider="Youer\LaravelJdSdk\ServiceProvider"