0.0.1 • Published 8 years ago

eleme-api v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

meituan

api client for meituan waimai open platform

install

npm install meituan --save

usage

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));
    

signature validate

mt.validateSign(yourUrl, params)    // return true or false

config

new Meituan(your_app_id, your_app_secret, [config]);

// or you can 

mt.config(config);

configuration

attributedescriptiondefault
debug是否线下测试false

test

npm run test
0.0.1

8 years ago