tw_get_message_media: Get Media from a Message

Description Usage Arguments Value Examples

View source: R/tw_get_message_media.R

Description

Media items that are attached to MMS messages, including photos and videos are stored by Twilio. This function returns a list of twilio_media objects, one for each piece of media in an MMS. Each object contains information about that piece of media including its URL, Media SID, and content type.

Usage

1
tw_get_message_media(message_sid)

Arguments

message_sid

An SID for a message that contains media.

Value

A list containing media information.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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 media information from a message
tw_get_message_media("MMo8Jw86Lj6422NzWgb8QxXlD5c45U100v")


## End(Not run)

twilio documentation built on May 2, 2019, 10:58 a.m.