aws-sns-sms-service
v0.1.7
Published
A simple way to send SMS text messages.
Downloads
19
Readme
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
- Any questions about the use of resources consult the official documentation of AWS: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html