PHP code example of luban / jop

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

    

luban / jop example snippets




use LuBan\Jop\Client;
use LuBan\Jop\Requests\JdUnionOpenGoodsQueryRequest;

$c = new Client();
$c->appKey = "You're appkey";
$c->appSecret = "You're appSecret";
$req = new JdUnionOpenGoodsQueryRequest();
$req->setKeyword('上衣');
$result = $c->execute($req);
var_dump($result);