PHP code example of yihaitao / baison
1. Go to this page and download the library: Download yihaitao/baison 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 / baison example snippets
use YiHaiTao\Baison\Baison;
$config = [
'key' => 'your-key',
'secret' => 'your-secret',
'base_url' => ' https://xxx.xxx.xxx/e3/webopm/web/?app_act=api/ec&app_mode=func',
];
// 实例化百胜E3OMS SDK
$baison = new Baison($config);
// 使用如下
$baison->request('serviceType', $params);
// 例子
$result = $baison->request('e3oms.order.detail.add', $params);
print_r($result);