@beige/mengwang-sdk

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @beige/mengwang-sdk

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

16.5 kB

Total Files

10

Last publish

Collaborators

  • beige