# 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
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)
// });
Maintenance & Development Çağatay Çalı