PHP code example of ydl / jd-cps

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

    

ydl / jd-cps example snippets




nt = new \JdCps\Client();
$client->setAppKey('xxxxx');
$client->setAppSecret('xxxxxx');
$request = new \JdCps\Request\JingFenQueryRequest();
$request->setEliteId(11);
$res = $client->execute($request);
var_dump($res);