@fizz.js/node-twilio
v1.0.0
Published
node-twilio
Downloads
3
Readme
@fizz.js/node-twilio
This is a twilio library for express.
install
add dependencies
into package.json
and run yarn install
configure
please put twilio
config into config/${env}.json
{
"twilio": {
"twiml": "http://twimlets.com/echo?Twiml=",
"accountSid": "XXXXXXXXXXXX",
"authToken": "XXXXXXXXXXXX",
"defaultFrom": {
"phoneNumber": "XXXXXXXXXXXX",
"callPrefix": "XXXXXXXXXXXX"
},
"defaultTo": {
"phoneNumber": "XXXXXXXXXXXX",
"callPrefix": "XXXXXXXXXXXX"
}
}
}
or put TWILIO_SID
,TWILIO_TOKEN
,TWILIO_DEFAULT_FROM
,TWILIO_DEFAULT_FROM_PREFIX
,TWILIO_DEFAULT_TO
,TWILIO_DEFAULT_TO_PREFIX
, into .env
file
TWILIO_SID="XXXXXXXXXXXX"
TWILIO_TOKEN="XXXXXXXXXXXX"
TWILIO_DEFAULT_FROM="XXXXXXXXXXXX"
TWILIO_DEFAULT_FROM_PREFIX="XXXXXXXXXXXX"
TWILIO_DEFAULT_TO="XXXXXXXXXXXX"
TWILIO_DEFAULT_TO_PREFIX="XXXXXXXXXXXX"
test
yarn test
coverage
yarn cover
build
yarn build
docs
yarn docs