aws-sms-send

Aws sms sender

Usage no npm install needed!

<script type="module">
  import awsSmsSend from 'https://cdn.skypack.dev/aws-sms-send';
</script>

README

 Let's save your :heavy_dollar_sign:

The problem: Classic Amazon – pricing is immediately at Wal-Mart levels. Sending an SMS message is a mere 0.0075 cents. Want to push notify 1 million end-points. Well that’s a 1. All of this quantity 1 for the lowly guy with a credit card. To get this SMS pricing level at Twilio, you’ve got to already be sending 500k text messages a month. The difference doesn’t sound like much. What’s 0.0025 amongst friends.But at the 500k message level that’s a savings of $1,250 a month.! check out the :sparkles: Original article

AWS sms pricing :+1:

Also twilio using AWS sms service Code Climate GitHub issuesGitHub stars Twitter

NPM

Installing

npm i aws-sms-send --save

Demo

Aws send sms without es6 - babel demo :ok_hand:

Using Example

var Sender = require('aws-sms-send');
var config = {
  AWS: {
    accessKeyId: 'xxxxxxxxxx',
    secretAccessKey: 'xxxxxxxxxx',
    region: 'xxxxxxxxxx',
  },
  topicArn: 'xxxxxxxxxx',
};

var sender = new Sender(config);

/* Create subscribe */
// sender.createSubscribe('+905054146201')
// .then(function(response) {
//   console.log(response);
// })
// .catch(function(err) {
//    console.log(err)
// });

/* Send topic sms */
// sender.sendSms('Sms body topic', 'Topic sms', true)
// .then(function(response) {
//   console.log(response);
// })
// .catch(function(err) {
//    console.log(err)
// });


/* Send direct sms */
// sender.sendSms('Sms body direct', 'Topic sms', false, '+905054146201')
// .then(function(response) {
//   console.log(response);
// })
// .catch(function(err) {
//    console.log(err)
// });

GIF

Maintenance & Development Çağatay Çalı