twilio-programmable-message

1.0.3 • Public • Published

twilio-programmable-message

programmable message:- It means send message with brand name.

This npm library is used to send messages through Twilio in programmable format. It helps to send the programable message(If it's listed on allowed country. Visit: https://support.twilio.com/hc/en-us/articles/223133767-International-support-for-Alphanumeric-Sender-ID ) by passing just a few things.

If you have passed a country that allows you to send a programmable message then it directly sends the programmable message otherwise it sends a normal Twilio message which not include your brand name in the title of your brand. example as mentioned below:

const accountSid = "Paste your AccountSid"; 
const authToken = "Paste your Auth Token"; 

//create instance of twilio

const client = require('twilio')(accountSid, authToken);
const sendSMS = require('twilio-programmable-message');

sendSMS(client,"write your brand name here","+447777777777","body of text","messagingServiceSid"))

request parameter data type description
Client twilio client
Brand name String brand name of compay or project
Sender phone number String or Array of String phone number with code( '+'sign is must)
message String body of message
messaging service Id String messaging service Id get from twilio

Package Sidebar

Install

npm i twilio-programmable-message

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.27 kB

Total Files

3

Last publish

Collaborators

  • ajaytarpara