api client for meituan waimai open platform
npm install meituan --save
var Meituan = require('meituan');
let mt = new Meituan(your_app_id, your_app_secret);
const path = '/api/v1/order/confirm';
const params = {order_id: '123'};
mt.get(path, params)
.then(body => console.log(body))
.catch(err => console.log(err));
mt.validateSign(yourUrl, params) // return true or false
new Meituan(your_app_id, your_app_secret, [config]);
// or you can
mt.config(config);
attribute | description | default |
---|---|---|
debug | 是否线下测试 | false |
npm run test