PHP code example of speauty / jushuitan

1. Go to this page and download the library: Download speauty/jushuitan 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/ */

    

speauty / jushuitan example snippets



use \JuShuiTan\Conf;
use \JuShuiTan\Tools;

$arr = [
    'partnerid' => 'ywv5jGT8ge6Pvlq3FZSPol345asd',
    'partnerkey' => 'ywv5jGT8ge6Pvlq3FZSPol2323',
    'token' => '181ee8952a88f5a57db52587472c3798',
    'method' => 'logisticscompany.query',
    'sign' => ''
];
$conf = new Conf($arr, true);
$jushuitan = new Tools($conf);
var_dump($jushuitan->exec(["modified_begin"=>"2016-08-30 10:51:40","modified_end"=>"2016-09-04 15:49:21"]));

# 基础API
use Exp\BasicApi;
dump($basic->shopQuery(['微合伙人1']));
var_dump($basic->logisticsCompanyQuery());
var_dump($basic->wmsPartnerQuery());
var_dump($basic->authShopGenerateQuery());
var_dump($basic->refreshToken());

# 商品API
use Exp\GoodsApi;

dump($goods->itemUpload());
var_dump($goods->mallItemUpload());
var_dump($goods->skuQuery(['310089000Y']));
var_dump($goods->skuMapQuery());
var_dump($goods->categoryQuery());