Description Usage Arguments Details Value
send a string as text message using Twilio API service
1 2 |
strText |
a string - the message to send |
toNumber |
the target number of the SMS |
fromNumber |
the Twilio assigned number for the user |
sid |
Twilio account SID |
token |
Twilio authorization token |
If the parameters fromNumber, sid or token are skipped, global variables are searched; which can be set using the Sys.setenv() function call with parameters as twilio_number, twilio_sid and twilio_token respectivly. Example Sys.setenv(twilio_number="yourtwilionumberasstring"). The function passes on the http message from the API post call and it is up to the user to parse and interpret the response.
HTTP response from the POST method from Twilio API
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.