1.0.3 • Published 2 years ago

twilio-programmable-message v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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 parameterdata typedescription
Clienttwilio client
Brand nameStringbrand name of compay or project
Sender phone numberString or Array of Stringphone number with code( '+'sign is must)
messageStringbody of message
messaging service IdStringmessaging service Id get from twilio