Connects to Twilio using your token and sends a text message.
Usage
text_message_twilio(To, From, Body, Account, Token, return_result = FALSE)
Arguments
- To
the number you're texting to (usually without zeroes at the beginning)
- From
the number you're texting from
- Body
the text message body/text
- Account
your Twilio account ID
- Token
your Twilio token
- return_result
whether to return simply TRUE/FALSE on success/failure or the whole result
Value
Logical TRUE/FALSE indicating send success, or (when return_result = TRUE) the raw API response list.
Examples
if (FALSE) { # \dontrun{
# Not run: sends a real SMS via the Twilio gateway (needs an account).
text_message_twilio(
To = '492222',
From = '15005000',
Body = 'Hello friend',
Account = 'ID', Token = 'Tokentokentoken')
} # }