@anabode/shared_worker_notification

1.0.9 • Public • Published

Anabode Notification service

Handles notification via email and SMS

DESCRIPTION

Accepts a Key/Value object with Key as search parameter and value as the replace value in a template fetched from S3

USAGE

Send SMS

var Notifier = require('@anabode/shared_worker_notification');
var notifier = new Notifier({}, conf.notifier);


  var smsBody = {
      body: "Hello", // 
      phone: 4477777777, // Required - must be in integer format and omitting the first 00 || + 
      sender: "Anabode" // will be shown on device as `from` some networks may not display this properly 
    };
    notifier.sendSMSMultiPurpose(smsBody, (e, d) => {
      if (e) {
          return reject(e);
      }
      else {
          return resolve(_input);
      }
    })

Package Sidebar

Install

npm i @anabode/shared_worker_notification

Weekly Downloads

3

Version

1.0.9

License

WTFPL

Unpacked Size

14.3 kB

Total Files

4

Last publish

Collaborators

  • seanyda
  • dnitsch
  • drioemgaoin