PHP code example of l1n6yun / duoduoke-sdk

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

    

l1n6yun / duoduoke-sdk example snippets


use l1n6yun\DuoDuoKe\DuoDuoKe;

$config = [
    'app_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'debug' => false,
    'log' => [
        'name' => 'DuoDuoKe',
        'file' => __DIR__ . '/DuoDuoKe.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
];

$duoduoke = new DuoDuoKe($config);

$result = $duoduoke->request('pdd.ddk.goods.detail', ['goods_id_list' => ['395581006']]);