Send sms alerts based on an Apex Ping alert rule.
Based on Apex Ping webhooks specification
# Phonenumber(s) to alert (comma seperated)
PHONENUMBERS='+1234567890,+19876543210'
# Twilio credentials and PHONENUMBERS
TWILIO_SID=abcdefg # Can be found in the Twilio console
TWILIO_AUTHTOKEN=abcdef # Can be found in the Twilio console
TWILIO_PHONENUMBER='+1234567890'
# Basic auth username and password
AUTH_LOGIN=test
AUTH_PASSWORD=test
- Make sure you define above ENV variables
- Clone this repository
- Run
npm install
oryarn
- Run
micro
Run now
with the -e
option to define above environment variables
npm install -g now
oryarn global add now
- Run the command below. Make sure you edit the environment variables.
now -e PHONENUMBERS='+1234567890,+19876543210' \
-e TWILIO_SID='abcdefg' \
-e TWILIO_AUTHTOKEN='abcdef' \
-e TWILIO_PHONENUMBER='+1234567890' \
-e AUTH_LOGIN='test' \
-e AUTH_PASSWORD='test' \
timneutkens/apex-ping-twilio-webhook