Socket
Socket
Sign inDemoInstall

eleme-api

Package Overview
Dependencies
51
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eleme-api

api client for eleme open api


Version published
Maintainers
1
Install size
9.73 MB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 31 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc