twilio-service
v1.0.0
Published
'twilio-service' is a package that includes several improvements and features including improved security, better performance, and new functionality to make it easier to use.
Downloads
2
Maintainers
Readme
twilio-service
An twilio service package for node js.
With just a few lines of code, your Node.js application can send text messages with 'twilio-service' Programmable SMS.
Install
npm install twilio-service
Usage
Environment Variables
Dotenv is used to populate your environment variables with your account credentials. You have to need set env credentials for this step in the .env file like this.
# .env
# Set your twilio connection information here
TWILIO_ACCOUNT_SID= ******
TWILIO_AUTH_TOKEN= ******
TWILIO_PHONE_NUMBER= ******
TWILIO_MESSAGING_SERVICE_ID= ******
Initialization
let twilioService = require("twilio-service");
const message = 'Hello World..!'
twilioService.twilio(message, phoneNumber);
License
MIT