Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mos:evtwiliowhatsapp [2023/05/15 02:03] optrixmos:evtwiliowhatsapp [2025/12/18 22:50] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====Twilio SMS====
  
 +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 message, with [[event codes|event substitutions]]|
 +
 +===Example===
 +
 +<code>
 +[
 +   {
 + "type": "event",
 + "method": "twilio_whatsapp",
 + "ccode": 61,
 + "sid": "--Twilio Security ID--",
 + "token": "--Twilio Auth Token--",
 + "from": "--Your Twilio Phone Number--",
 + "to": "--The Destination Phone Number--",
 +                "format": "Your ARDI code is %S",
 + }
 +]
 +</code>
 +
 +//The above example would send a Whatsapp message containing the text to the phone number in the **to** parameter.//
 +
 +**NOTE**: Whatsapp is quite restrictive about the types of messages send on their platform, in an attempt to discourage bots. As such, you will have to establish 'templates' for each of the types of Whatsapp messages you will send through the Twilio API.
 +
 +The 'format' above is an example of how you can test Whatsapp messaging by using one of the built-in message templates in their sandbox environment.
 +
 +===Performance/Spam Warning===
 +
 +Like all of the [[announcement|announcement modules]], this module may take some time to execute and will block the process in the mean-time. 
 +
 +===Server Internet Connection Required===
 +
 +The server needs to be able to establish a connection with services on the Internet to use this module.
 +
 +===Other Modules===
 +
 +Return to the [[event_methods|list of output modules]].