tm_configure: Store Twilio SID, Twilio token, Twilio phone number, and...

Description Usage Arguments Value Examples

View source: R/tm_configure.R

Description

Store Twilio SID, Twilio token, Twilio phone number, and target phone number for later use.

Usage

1
2
3
tm_configure(twilio_sid = NULL, twilio_token = NULL,
  twilio_phone_number = NULL, target_phone_number = NULL,
  overwrite = FALSE)

Arguments

twilio_sid

Your Twilio SID.

twilio_token

Your Twilio Token.

twilio_phone_number

Your Twilio phone number.

target_phone_number

The phone number you want to receive a text message at

overwrite

By default, this is set to FALSE. If TRUE, R will overwrite existing .Renviron variables that match the ones named in this function.

Value

A .Renviron file that stores the supplied paramaters for ease of use in future R sessions.

Examples

1
2
3
4
5
6
7
8
# set parameters
tm_configure(twilio_sid   = "AC1ffb497954c02119a0f0720784bde131",
             twilio_token = "f5c8af81ddadaf3e8904b909f975c369",
             twilio_phone_number = "1234567890",
             target_phone_number = "0987654321")

# view and edit the .Renvion file
file.edit("~/.Renviron")

richpauloo/textme documentation built on Aug. 13, 2020, 3:11 p.m.