gmail v0.0.6 Gmail.Thread

A collection of messages representing a conversation.

Summary

Functions

Gets the specified thread

Gets the specified thread

Lists the threads in the user’s mailbox

Searches for threads in the user’s mailbox

Searches for threads in the user’s mailbox

Types

t :: %Gmail.Thread{history_id: term, id: term, messages: term, snippet: term}

Functions

get(id)

Specs

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

Gets the specified thread.

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

get(user_id, id)

Specs

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

Gets the specified thread.

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

list(user_id \\ "me", params \\ %{})

Specs

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

Lists the threads in the user’s mailbox.

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

search(query)

Specs

search(String.t) :: [Gmail.Thread.t]

Searches for threads in the user’s mailbox.

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

search(user_id, query)

Specs

Searches for threads in the user’s mailbox.

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