PHP code example of deadlymous / chengxinyun
1. Go to this page and download the library: Download deadlymous/chengxinyun 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/ */
deadlymous / chengxinyun example snippets
Chengxinyun\Factory;
$obj = Factory::Merchant('秘钥');
//以数组形式作为参数
//不需要参入时间戳和签名
//在请求前会自动生成数据
$res = $obj->merchants_list_info([
'agentNumber'=>'',
'pageNum'=>1,
'pageSize'=>20,
]);
var_dump($obj);