gmail v0.1.17 Gmail.Draft

A draft email in the user’s mailbox.

Summary

Functions

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/drafts#resource

Converts a Gmail API draft resource into a local struct

Immediately and permanently deletes the specified draft. Does not simply trash it

Gets the specified draft

Lists the drafts in the user’s mailbox

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers

Types

t()
t() :: %Gmail.Draft{id: term, message: term}

Functions

__struct__()

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/drafts#resource

convert(map)
convert(map) :: Gmail.Draft.t

Converts a Gmail API draft resource into a local struct.

delete(user_id, draft_id)
delete(String.t, String.t) :: {atom, String.t, String.t}

Immediately and permanently deletes the specified draft. Does not simply trash it.

Gmail API Documentation: https://developers.google.com/gmail/api/v1/reference/users/drafts/delete

get(user_id, draft_id)
get(String.t, String.t) :: {atom, String.t, String.t}

Gets the specified draft.

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/drafts/get

list(user_id)
list(String.t) :: {atom, String.t, String.t}

Lists the drafts in the user’s mailbox.

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

send(user_id, draft_id)
send(String.t, String.t) :: {atom, String.t, String.t, map}

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

Gmail API Documentation: https://developers.google.com/gmail/api/v1/reference/users/drafts/send