gmail v0.0.9 Gmail.Label

Labels are used to categorize messages and threads within the user’s mailbox.

Summary

Functions

Creates a new label

Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to

Gets the specified label

Gets the specified label

Lists all labels in the user’s mailbox

Types

t :: %Gmail.Label{id: term, labelListVisibility: term, messageListVisibility: term, messagesTotal: term, messagesUnread: term, name: term, threadsTotal: term, threadsUnread: term, type: term}

Functions

create(name, user_id \\ "me")

Specs

Creates a new label.

Gmail API documentation: https://developers.google.com/gmail/api/v1/reference/users/labels/create

delete(label_id, user_id \\ "me")

Specs

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

Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.

Google API Documentation: https://developers.google.com/gmail/api/v1/reference/users/labels/delete

get(id)

Specs

Gets the specified label.

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

get(user_id, id)

Gets the specified label.

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

list(user_id \\ "me")

Specs

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

Lists all labels in the user’s mailbox.

Gmail API Documentation: https://developers.google.com/gmail/api/v1/reference/users/labels/list