PHP code example of henrick / duoduoke

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

    

henrick / duoduoke example snippets


$clientId     = "test0001";  //应用ID
$clientSecret = "ii5Q4jihb1CcfyiT1TcIIq0ecmQKvRm"; //应用秘钥

//调用示例

use Henrick\Duoduoke\DuoduokeSDK;

$exmail = new DuoduokeSDK($clientId, $clientSecret);
$token = $exmail->goodsOptGet([
            'parent_opt_id' => 0
        ]);