media_type_enum: Lookup Media Type Enum

Description Usage Arguments Examples

Description

This function returns the integer value of a specified type of media

Usage

1
media_type_enum(media_type = c("PHOTO", "VIDEO", "ALBUM"))

Arguments

media_type

character; one of three types of media PHOTO, VIDEO, or ALBUM.

Examples

1
2
3
4
5
# photo media are mapped to 1
media_type_enum("PHOTO")

# an unknown media type returns NULL
media_type_enum("FAKE_MEDIA_TYPE")

eric88tchong/Rinstapkg documentation built on June 12, 2019, 1:06 p.m.