Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/XadillaX/ihuyi106js
iHuyi 106 SMS sender for node.js.
https://github.com/XadillaX/ihuyi106js
Last synced: 5 days ago
JSON representation
iHuyi 106 SMS sender for node.js.
- Host: GitHub
- URL: https://github.com/XadillaX/ihuyi106js
- Owner: XadillaX
- License: mit
- Created: 2014-02-12T08:11:51.000Z (over 10 years ago)
- Default Branch: v1
- Last Pushed: 2021-03-10T23:56:55.000Z (over 3 years ago)
- Last Synced: 2024-11-01T09:51:34.682Z (10 days ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iHuyi 106 Sender
iHuyi 106 SMS sender for node.js.
## Install
```shell
$ npm install ihuyi106
```## Usage
```javascript
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](https://github.com/XadillaX/ihuyi106js/blob/master/LICENSE)