@samagra-x/uci-adapters-twilio-sms
v1.0.0
Published
A twilio wrapper for @samagra-x/uci-adapters-factory
Downloads
101
Maintainers
Keywords
Readme
Nodejs Twilio SMS Provider
A twilio sms provider library for @samagra-x/uci-adapters-factory
Taken from: @novu/stateless
Usage
import { AdapterFactory } from '@samagra-x/uci-adapters-factory';
const adapter = AdapterFactory.getAdapter({
type: 'TwilioSms',
config: {
accountSid: process.env.TWILIO_ACCOUNT_SID,
authToken: process.env.TWILIO_AUTH_TOKEN,
from: process.env.TWILIO_FROM_NUMBER, // a valid twilio phone number
}
});
await adapter.sendMessage({
to: '0123456789',
content: 'Message to send',
});