Nightingale Posing Mischievously
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    mod-aspsmspublic

    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.

    Keywords

    none

    install

    npm i mod-aspsms

    Downloadsweekly downloads

    7

    version

    1.0.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar