Skip to content

aniketchougule22/twilio-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

With just a few lines of code, your Node.js application can send text messages with 'twilio-service' Programmable SMS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published