gmail v0.1.5 Gmail.Thread

A collection of messages representing a conversation.

Summary

Functions

Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer trash instead

Gets the specified thread

Lists the threads in the user’s mailbox

Searches for threads in the user’s mailbox

Moves the specified thread to the trash

Types

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

Functions

delete(user_id, thread_id)

Specs

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

Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer trash instead.

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

get(user_id, thread_id, params)

Specs

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

Gets the specified thread.

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

list(user_id, params)

Specs

list(String.t, map) :: {atom, String.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(user_id, query, params)

Specs

search(String.t, String.t, map) :: {atom, String.t, String.t}

Searches for threads in the user’s mailbox.

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

trash(user_id, thread_id)

Specs

trash(String.t, String.t) :: {atom, String.t, String.t}

Moves the specified thread to the trash.

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