1. Go to this page and download the library: Download jmj/jushuitan-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/ */
jmj / jushuitan-sdk example snippets
use JushuitanSdk\Client;
use JushuitanSdk\Config;
use JushuitanSdk\Services\BaseService;
$config = [
'shop_id' => 0,
'sandbox' => true,
'partnerid' => 'ywv5jGT8ge6Pvlq3FZSPol345asd',
'partnerkey' => 'ywv5jGT8ge6Pvlq3FZSPol2323',
'token' => '181ee8952a88f5a57db52587472c3798',
];
$jstConfig = new Config($config);
$jstClient = new Client($jstConfig);
$jstService = new BaseService($jstClient);
$params = [
"page_index" => 1,
"page_size" => 100,
];
var_dump($jstService->shopsQuery($params));
OR
var_dump($jstClient->request("shops.query", $params));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.