Skip to content

Function to retrieve a given message by id

Usage

gm_message(
  id,
  user_id = "me",
  format = c("full", "metadata", "minimal", "raw")
)

Arguments

id

message id to access

user_id

gmail user_id to access, special value of 'me' indicates the authenticated user.

format

format of the message returned

Examples

if (FALSE) {
my_message <- gm_message(12345)
}