• Stars
    star
    283
  • Rank 146,066 (Top 3 %)
  • Language
    JavaScript
  • Created over 8 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Aws sms sender

# Let's save your 💲

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 Original article

AWS sms pricing 👍

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 👌

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ı