magnet-twilio
v1.0.0
Published
Magnet adapter for twilio
Downloads
19
Maintainers
Readme
Magnet wrapper for Nodemailer
Usage
Basic
import magnet from 'magnet-core';
import Config from 'magnet-config';
import Logger from 'magnet-bunyan';
import Twilio from 'magnet-twilio';
let app = await magnet([Config, Logger, Twilio]);
let response = await app.twilio.messages.create({
body: 'Hello from Node',
to: '+12345678901', // Text this number
from: '+12345678901' // From a valid Twilio number
}, function(err, message) {
if(err) {
console.error(err.message);
}
})