gmail v0.1.20 Gmail.Draft

A draft email in the user’s mailbox.

Link to this section 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

Link to this section Types

Link to this type t()
t() :: %Gmail.Draft{id: term(), message: term()}

Link to this section Functions

Link to this function %Gmail.Draft{} (struct)

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

Link to this function convert(map)
convert(map()) :: Gmail.Draft.t()

Converts a Gmail API draft resource into a local struct.

Link to this function 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

Link to this function 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

Link to this function 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

Link to this function 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