composer require ysoar/meituan-openapi:dev-master
use MeituanOpenApi\Config\Config;
use MeituanOpenApi\Api\TakeAway\ProductService;
//实例化一个配置类
$config = new Config($this->developerId, $this->businessId, $this->signKey, false);
//使用config和token对象,实例化一个服务对象
$productService = new ProductService($token, $config);
//调用服务方法,获取资源
$cateList = $productService->queryCateList(12345);