gmail v0.0.4 Gmail.Message

Summary

Functions

Converts a Gmail API message response into a local struct

Gets a message with the specified id

Gets a message for the specified user with the specified id

Gets a list of messages

Searches for messages

Searches for messages for the specified user

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(map)

Specs

convert(Map.t) :: Gmail.Message.t

Converts a Gmail API message response into a local struct

get(id)

Specs

get(String.t) :: {:ok, Gmail.Message.t}

Gets a message with the specified id

get(user_id, id)

Specs

Gets a message for the specified user with the specified id

list(user_id \\ "me")

Specs

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

Gets a list of messages

search(query)

Searches for messages

search(user_id, query)

Searches for messages for the specified user