mod-aspsms

a SMS gateway provider for Aspsms

aspsms

Gateway to SMS-Provider Aspsms for node

var config = {
  "disable": true,
  "userkey": "YOUR_USERKEY",
  "password": "YOUR_PASSWORD",
  "originator": "YOUR_NAME",
  "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);
}