@beige/mengwang-sdk
梦网 短信 接口
Last updated 9 months ago by beige .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @beige/mengwang-sdk 
SYNC missed versions from official npm registry.

The MengWang Server SDK

MengWang is committed to providing cloud-based instant messaging services for Internet and Mobile Internet developers. It enables developers to quickly integrate instant messaging capabilities with applications without any hardware installation requirements.

The server SDK is a wrapper of all the https API calls, which could be found here

Install

$ npm install @beige/mengwang-sdk

Init

const mengwangSdk = require('@beige/mengwang-sdk')({
  userid: '******',
  pwd: '******'
});

Usage

var Sms = mengwangSdk.Sms;

var smsData = {
	mobile: '15311489017',
  content: '同事您好,感谢您对此次测试的配合。123456',
  svrtype: '',
  exno: '',
  custid: '',
  exdata: ''
};
Sms.singleSend(smsData).then(result => {
	console.log(result);
}, error => { 
	console.log(error);
});

License

MIT

Current Tags

  • 0.0.2                                ...           latest (9 months ago)

2 Versions

  • 0.0.2                                ...           9 months ago
  • 0.0.1                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 2
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |