PHP code example of ydg / meituan-union-sdk
1. Go to this page and download the library: Download ydg/meituan-union-sdk 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/ */
ydg / meituan-union-sdk example snippets
use Ydg\MeituanUnionSdk\Meituan;
$app = new Meituan([
'uid' => 'your uid',
'appkey' => 'your appkey',
'sign_secret' => 'your sign_secret',
]);
$app->api->orderList([
'businessLine' => 2,
'startTime' => time() - 86400,
'endTime' => time(),
'page' => 1,
'limit' => 1,
'queryTimeType' => 1,
]);