gmail v0.1.3 Gmail.Message

An email message.

Summary

Functions

Converts a Gmail API message resource into a local struct

Gets the specified message

Lists the messages in the user’s mailbox

Searches for messages in the user’s mailbox

Types

t :: %Gmail.Message{history_id: term, id: term, label_ids: term, payload: term, raw: term, size_estimate: term, snippet: term, thread_id: term}

Functions

convert(message)

Specs

convert(map) :: Gmail.Message.t

Converts a Gmail API message resource into a local struct

get(user_id, message_id, params)

Specs

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

Gets the specified message.

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

list(user_id, params)

Specs

list(String.t, map) :: {atom, [Gmail.Message.t]}

Lists the messages in the user’s mailbox.

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/messages/list

search(user_id, query, params)

Specs

search(String.t, String.t, map) :: {atom, [Gmail.Message.t]}

Searches for messages in the user’s mailbox.

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/messages/list