powered by
Get a list of drafts possibly matching a given query string.
gm_drafts(num_results = NULL, page_token = NULL, user_id = "me")
the number of results to return.
retrieve a specific page of results
gmail user_id to access, special value of 'me' indicates the authenticated user.
https://developers.google.com/gmail/api/reference/rest/v1/users.drafts/list
Other draft: gm_delete_draft(), gm_draft(), gm_send_draft()
gm_delete_draft()
gm_draft()
gm_send_draft()
if (FALSE) { my_drafts = gm_drafts() first_10_drafts = gm_drafts(10) }
Run the code above in your browser using DataLab