Learn R Programming

gmailr (version 0.5.0)

id: Get the id of a gmailr object

Description

Get the id of a gmailr object

Usage

id(x, ...)

## S3 method for class 'gmail_message': id(x, ...)

## S3 method for class 'gmail_draft': id(x, ...)

## S3 method for class 'gmail_messages': id(x, what = c("message_id", "thread_id"), ...)

## S3 method for class 'gmail_drafts': id(x, what = c("draft_id", "message_id", "thread_id"), ...)

## S3 method for class 'gmail_threads': id(x, ...)

Arguments

x
the object from which to retrieve the id
...
other parameters passed to methods
what
the type of id to return

Examples

Run this code
id(my_message)
id(my_draft)

Run the code above in your browser using DataLab