No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
index.js
package.json

README.md

mod-aspsms

Gateway to SMS-Provider Aspsms for node.

var config = {
  "disable": true,
  "userkey": "YOUR_USERKEY",
  "password": "YOUR_PASSWORD",
  "originator": "YOUR_NAME",
  // Optional:
  "deliveryNotificationUrl": "http://example.com/success",
  "nonDeliveryNotificationUrl": "http://example.com/failure"
};

var sms = require('mod-aspsms')(config);

var msg = 'Test SMS from NodeJs';

var addressBook = ['+41765432109'];

for (var i = 0; i < addressBook.length; i++) {
  sms.send(addressBook[i], msg);
}

I released this code because I believe everyone should be able to send texts with node.