Skip to content

An AWS SNS Module to send msessage to a mobilenumber. It can be used to send OTP.

License

Notifications You must be signed in to change notification settings

vishal7201/aws-sns-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-sns-sms

An AWS SNS Module to send message to a phone number.(Can be used to send OTP)

Installation

npm install aws-sns-sms

Usage

  let sendMsg = require('aws-sns-sms');
  let awsConfig = {
  accessKeyId: '',
  secretAccessKey: '',
  region: ''
  };

  let msg = {
    "message": "your OTP is 845214",
    "sender": "VISHAL",
    "phoneNumber": "+91XXXXXXXXXX" // phoneNumber along with country code
  };
  sendMsg(awsConfig, msg).then(data => {
    console.log("Message sent");
  })
  .catch(err => {
    console.log(err);
  });

About

An AWS SNS Module to send msessage to a mobilenumber. It can be used to send OTP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages