tw_message_tbl {twilio} | R Documentation |
Make a Data Frame from a Messages List
Description
Useful for turning a twilio_messages_list
into a tidy data set.
Usage
tw_message_tbl(messages_list)
Arguments
messages_list |
An S3 object with the class |
Value
A data frame.
Examples
## Not run:
# Set API credentials
# You only need to do this once per R session
Sys.setenv(TWILIO_SID = "M9W4Ozq8BFX94w5St5hikg7UV0lPpH8e56")
Sys.setenv(TWILIO_TOKEN = "483H9lE05V0Jr362eq1814Li2N1I424t")
# Get messages sent to your account
messages <- tw_get_messages_list()
# Create data frame from log
sms_data <- tw_message_tbl(messages)
## End(Not run)
[Package twilio version 0.1.0 Index]