gmail v0.0.15 Gmail.Draft

A draft email in the user’s mailbox.

Summary

Functions

Gets the specified draft

Lists the drafts in the user’s mailbox

Types

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

Functions

get(id, user_id \\ "me")

Specs

get(String.t | 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 \\ "me")

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