yunpiansms
v0.0.3
Published
A Node.js SDK for Yunpian SMS.
Downloads
2
Readme
A Node.js SDK for Yunpian SMS.
npm install yunpiansms
The interface is similar to the API.
yunpiansms.{resource}.{function}()
All functions return a promise(es6-shim).
Example:
var sms = new YunpianSMS('apikey');
sms.send('13888888888', 'Hello').then(function(){
console.log('OK!');
});
sms.tpl.get('1').catch(function(){
console.log('Tpl Not Found!');
});