aws-sns-sms-service

0.1.4 • Public • Published

AWS-SNS-SMS

  • A simple way to send SMS text messages.

Installation

$ npm install aws-sns-sms-service

Prerequisites

This module utilizes Amazon SNS for sending SMS messages. As such, this will require an AWS account and an IAM User with programmatic access keys.

##Example

Send Notification

const SMSService = require('aws-sns-sms-service');

const parameters = {
    key_id: 'xxxxxxxxxxxxxxxxxx',
    access_key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    message: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
    mobiles: ['520000000000']
};

SMSService.sendNotification(parameters).then(resolve => {
    [
        {
            mobile: '520000000000',
            message_id: '8c3ed5ae-6dcc-5ba1-ab45-8c145409a148'
        }
    ]
});

Official documentation AWS

End

Package Sidebar

Install

npm i aws-sns-sms-service

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

6.63 kB

Total Files

8

Last publish

Collaborators

  • csmasanchez
  • vmaza
  • marcocarrillo