1.0.1 • Published 8 years ago

ihuyi106 v1.0.1

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

iHuyi 106 Sender

iHuyi 106 SMS sender for node.js.

Install

$ npm install ihuyi106

Usage

var IHuyi = require("ihuyi106");
var account = "your_account";
var password = "your_password";
var apiKey = "apikey"; // international api key, if exist
var mobile = "158********";
var iCountryCode = "1";
var iMobile = "63*********";
var content = "Hello world!";

// apiKey is optional
var iHuyi = new IHuyi(account, password, apiKey);

iHuyi.send(mobile, content, function(err, smsId) {
    if(err) {
        console.log(err.message);
    } else {
        console.log("SMS sent, and smsId is " + smsId);
    }
});

iHuyi.sendInternational(iCountryCode, iMobile, content, function(err, smsId) {
    if(err) {
        console.log(err.message);
    } else {
        console.log("SMS sent, and smsId is " + smsId);
    }
});

LICENSE

MIT

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago