PHP code example of keacefull / eleme
1. Go to this page and download the library: Download keacefull/eleme 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/ */
keacefull / eleme example snippets
use Abbotton\Eleme\Application;
......
$config = [
'app_id' => 'xxx',
'app_secret' => 'xxx',
'access_token' => 'xxx'
];
$app = new Application($config);
// 获取商户分类
$result = $app->common->shopCategories(['level' => '1', 'category_id' => '166']);
var_dump(json_decode($result, true));