1.0.1 • Published 9 years ago

hinet_sms v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Hinet_SMS

Hinet telecom from Taiwan, sms api module.

Install

npm install hinet_sms

Example

var sms = new SMS({
  account: 'HN_NUMBERS',
  password: 'SMS_PASSWORD'
});

sms.on('logined', function () {
  sms.send('0912333333', 'Test Message');
});

sms.connect(function () {
  sms.auth();
});

Methods

The module defines the following functions:

connect(callback)

Connect socket

auth()

Get auth to CHT Server

send(targetNumber, message)

Send a message to target number immediately.

Events

  • logined: when auth successful
  • login_failed: auth failed
  • sent: the message sent
1.0.1

9 years ago

1.0.0

9 years ago