This repo is a LIMP Package for the sole purpose of integrating Twilio SMS into LIMP apps using LIMP Gateways.
- Clone this repo into your LIMP
modulesfolder. - Add following to your app package config:
'vars':{
'twilio':{
'sid':'YOUR_TWILIO_SID_HERE',
'token':'YOUR_TWILIO_TOKEN_HERE',
'no':'YOUR_TWILIO_PHONE_HERE'
}
}- Twilio gateway requires following args:
phone: Target phone number using international format with prefixed+. Typestr.content: Message body. Typestr.
- Twilio gateway accepts optional arg, namely
twilio_auth, replicatingtwiliovalue invars Config Attrfor dynamic Twilio API credentials. - Use Twilio gateway using LIMP Gateway Controller:
from gateway import Gateway
Gateway.send(gateway='twilio', phone=phone, content=content)