gm_drafts: Get a list of drafts

View source: R/gm_draft.R

gm_draftsR Documentation

Get a list of drafts

Description

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

Usage

gm_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/reference/rest/v1/users.drafts/list

See Also

Other draft: gm_delete_draft(), gm_draft(), gm_send_draft()

Examples

## Not run: 
my_drafts <- gm_drafts()

first_10_drafts <- gm_drafts(10)

## End(Not run)

r-lib/gmailr documentation built on Nov. 5, 2023, 6:22 a.m.