PHP code example of andyliu / wdgjapi

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

    

andyliu / wdgjapi example snippets


composer 


use wdgjapi;
$data = array(
    'method'=>'wdgj.erp.stock.query',
    'accesstoken'=>'accesstoken',
    'appkey'=>'appkey',
    'page_no'=>1,
    'page_size'=>10,
    'url'=>'http://api.wdgj.com/wdgjcloud/api',
    'app_secret'=>'app_secret',
    'BarCode'=>'1111'
);
echo '<pre>';
$wdgjapi = new wdgjapi\wdgjapi($data);

$r = $wdgjapi->send();
var_dump($r);
exit;