PHP code example of fighting-pie / haodanku-union-sdk

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

    

fighting-pie / haodanku-union-sdk example snippets




$config = [
    'apikey' => ''
];

$client = new \HaoDanKuSdk\HaoDanKuFactory($config);
$result = $client->top->lists();

if ($result == false) {
    var_dump($client->getError());
}

echo json_encode($result);