PHP code example of jassue / pdd-duoduoke

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

    

jassue / pdd-duoduoke example snippets


use Jassue\DuoDuoKe\Client;
ent_id', 'client_secret');

// 获取爆款排行商品接口
// 方式一
$result = $duoduoke->topGoodsListQuery(); 
// 方式二
$result = $duoduoke->request('pdd.ddk.top.goods.list.query', []);