PHP code example of huaji-team / meiguan-shagou

1. Go to this page and download the library: Download huaji-team/meiguan-shagou 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/ */

    

huaji-team / meiguan-shagou example snippets


$request = new GetOrderDaySeqRequest();
$request->setAppPoiCode(281);

//也可以直接创建请求类传入参数
$request = new GetOrderDaySeqRequest([
    'app_poi_code' => 281
]);


$request = new GetOrderDaySeqRequest([
    'app_poi_code' => 281
]);
$request->setAppPoiCode(281);
$client = new ShanGouClient('**', '****');
$res = $client->send($request);

if ($res->isSuccess()) {
    print_r($res->getResult());
} else {
    echo $res->getMessage();
}