1.0.3 • Published 3 years ago
twilio-programmable-message v1.0.3
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 |