hinet_sms
Version:
Hinet telecom from Taiwan, sms api module.
41 lines (29 loc) • 615 B
Markdown
Hinet telecom from Taiwan, sms api module.
npm install hinet_sms
```
var sms = new SMS({
account: 'HN_NUMBERS',
password: 'SMS_PASSWORD'
});
sms.on('logined', function () {
sms.send('0912333333', 'Test Message');
});
sms.connect(function () {
sms.auth();
});
```
The module defines the following functions:
Connect socket
Get auth to CHT Server
Send a message to target number immediately.
* logined: when auth successful
* login_failed: auth failed
* sent: the message sent