drafts {gmailr}R Documentation

Get a list of drafts

Description

Get a list of drafts possibly matching a given query string.

Usage

drafts(num_results = NULL, page_token = NULL, user_id = "me")

Arguments

num_results

the number of results to return.

page_token

retrieve a specific page of results

user_id

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

References

https://developers.google.com/gmail/api/v1/reference/users/drafts/list

See Also

Other draft: draft, send_draft

Examples

## Not run: 
my_drafts = drafts()

first_10_drafts = drafts(10)

## End(Not run)

[Package gmailr version 0.7.1 Index]