gmail v0.1.3 Gmail.Draft

A draft email in the user’s mailbox.

Summary

Functions

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 :: %Gmail.Draft{id: term, message: term}

Functions

convert(map)

Specs

convert(map) :: Gmail.Draft.t
delete(user_id, draft_id)

Specs

delete(String.t, String.t) :: {atom, atom} | atom

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)

Specs

get(String.t, String.t) ::
  {atom, Gmail.Message.t} |
  {atom, String.t} |
  {atom, map}

Gets the specified draft.

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

list(user_id)

Specs

list(String.t) :: {atom, [Gmail.Draft.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)

Specs

send(String.t, String.t) :: {atom, Gmail.Thread.t}

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