@samagra-x/uci-adapters-twilio-sms
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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',
});

Readme

Keywords

none

Package Sidebar

Install

npm i @samagra-x/uci-adapters-twilio-sms

Weekly Downloads

103

Version

1.0.0

License

MIT

Unpacked Size

13 kB

Total Files

15

Last publish

Collaborators

  • kdwevedi
  • packagewala
  • ankit_ml12
  • amruth-vamshi
  • chinmoy12c
  • prtkjakhar21
  • techsavvyash
  • chaks-samagra