sendText: send a given text to a phone as SMS using Twilio API

Description Usage Arguments Details Value

View source: R/sendText.R

Description

send a string as text message using Twilio API service

Usage

1
2
sendText(strText, toNumber = NULL, fromNumber = NULL, sid = NULL,
  token = NULL)

Arguments

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

Details

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.

Value

HTTP response from the POST method from Twilio API


prodipta/sendText documentation built on May 26, 2019, 8:33 a.m.