PHP code example of ydg / meituan-media-sdk

1. Go to this page and download the library: Download ydg/meituan-media-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-media-sdk example snippets




use Ydg\MeituanMediaSdk\Meituan;

$app = new Meituan([
    'app_key' => 'your app_key',
    'app_secret' => 'your app_secret',
]);
$app->cps->query_order([
    'queryTimeType' => 1,
    'startTime' => time() - 60,
    'endTime' => time(),
    'page' => 1,
    'limit' => 10,
]);