PHP code example of yihaitao / kuaimai
1. Go to this page and download the library: Download yihaitao/kuaimai 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/ */
yihaitao / kuaimai example snippets
use YiHaiTao\KuaiMai\KuaiMai;
$config = [
'app_key' => 'your-key',
'app_secret' => 'your-secret',
'access_token' => 'your-access-token',
'base_url' => 'https://gw.superboss.cc/router',
];
// 实例化快麦sdk
$km = new KuaiMai($config);
// 使用如下
$km->request('method', $params);
// 例子
$result = $km->request('erp.trade.create.new', $params);
print_r($result);