Skip to content

dns2utf8/mod-aspsms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mod-aspsms

Gateway to SMS-Provider Aspsms for node.

var config = {
  "disable": true, // switch to false to enable the service
  "UserName": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "Password": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "Originator": "Your Name",
  // Optional:
  "logger": console.log, // if you would like to see debug output
  "URLDeliveryNotification": "https://example.com/success",
  "URLNonDeliveryNotification": "https://example.com/failure"
};

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

const msg = 'Test SMS from NodeJs';

const addressBook = ['+41798765432'];

sms.send(addressBook, msg);

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

Additional docs

https://json.aspsms.com/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published