gmail v0.1.5 Gmail.User

Represents a user’s mailbox, holding it’s config and tokens.

Summary

Functions

Gets a draft from the specified user’s mailbox

Sends a draft from the specified user’s mailbox

Lists the drafts in the specified user’s mailbox

Gets a label from the specified user’s mailbox

Patches a label in the specified user’s mailbox

Lists all labels in the specified user’s mailbox

Gets a message from the specified user’s mailbox

Trashes the specified message from the user’s mailbox

Lists the messages in the specified user’s mailbox

Searches for messages or threads in the specified user’s mailbox

Starts the process for the specified user

Stops the process for the specified user

Gets a thread from the specified user’s mailbox

Trashes the specified thread from the user’s mailbox

Lists the threads in the specified user’s mailbox

Functions

draft(user_id, draft_id)

Gets a draft from the specified user’s mailbox.

draft(atom, user_id, draft_id)

Sends a draft from the specified user’s mailbox.

drafts(user_id)

Lists the drafts in the specified user’s mailbox.

label(user_id, label_id)

Gets a label from the specified user’s mailbox.

label(atom, user_id, label_name)

Patches a label in the specified user’s mailbox.

labels(user_id)

Lists all labels in the specified user’s mailbox.

message(user_id, message_id)

Gets a message from the specified user’s mailbox.

message(user_id, message_id, params)

Trashes the specified message from the user’s mailbox.

messages(user_id, params \\ %{})

Specs

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

Lists the messages in the specified user’s mailbox.

search(user_id, thread_or_message, query, params \\ %{})

Specs

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

Searches for messages or threads in the specified user’s mailbox.

start_mail(user_id, refresh_token)

Starts the process for the specified user.

stop_mail(user_id)

Stops the process for the specified user.

thread(user_id, thread_id)

Gets a thread from the specified user’s mailbox.

thread(user_id, thread_id, params)

Trashes the specified thread from the user’s mailbox.

threads(user_id, params \\ %{})

Lists the threads in the specified user’s mailbox.