PHP code example of ezhuerpsdk / wisderapi

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

    

ezhuerpsdk / wisderapi example snippets


composer 

use $wisderapi
$data=array(
   'token'     =>'qw1321qs2wqe',
   'secret'    =>'dfdsf12312das123',
   'url'       =>'http://60.174.195.124:6041/router/rest',
   );
$wisderapi = new wisderapi($data);
$params = array(
 'method'=>'trade.list',
 'start_time'=>'2017-02-11 13:03:41',
 'end_time'=>'2017-06-09 17:03:41',
 'shop_type_ids'=>'1,2,3',
 'page_no'=>'1',
 'page_size'=>'50',
 );
 $result = $wisderapi->send($params);
var_dump($result);
exit;