The Twilio SMS output module allows you to write simple SMS messages through the Twilio API.
| Parameter | Default | Meaning |
|---|---|---|
| ccode | 61 | Your international dialling code |
| sid | Your Twilio security ID | |
| token | Your Twilio Auth Token | |
| from | The Twilio phone number to send messages from | |
| to | The phone number to send messages to | |
| format | %M | The content of the email message, with event substitutions |
[
{
"type": "event",
"method": "twilio_sms",
"ccode": 61,
"sid": "--Twilio Security ID--",
"token": "--Twilio Auth Token--",
"from": "--Your Twilio Phone Number--",
"to": "--The Destination Phone Number--"
}
]
The above example would send an SMS containing the message to the phone number in the to parameter.
Like all of the announcement modules, this module may take some time to execute and will block the process in the mean-time.
The server needs to be able to establish a connection with services on the Internet to use this module.
Return to the list of output modules.