abbotton / meituan-takeaway
美团外卖开放平台PHP SDK
v1.0.9
2021-10-27 03:28 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: >=6.5
Requires (Dev)
- phpunit/phpunit: >=5.6
README
美团外卖开放平台PHP SDK
美团外卖开放平台PHP SDK,支持零售综合
、医疗综合
以及团好货
三大板块。
安装
composer require abbotton/meituan-takeaway
使用
use Abbotton\MeituanTakeaway\Application; ...... $config = [ 'app_id' => 'xxx', 'app_secret' => 'xxx', 'request_url' => '', // 默认 `https://waimaiopen.meituan.com/api/v1/` ]; $app = new Application($config); $params = ['order_id' => '27061900338318741', 'is_mt_logistics' => 1]; $orderDetail = $app->order->getOrderDetail($params); print_r(json_decode($orderDetail, true)); // 商品类、活动类接口支持异步队列 $app->goods->async()->create([]); ......