Liking cljdoc? Tell your friends :D

happygapi.gmail.users

Gmail API: users. The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels. See: https://developers.google.com/gmail/api/api/reference/rest/v1/users

Gmail API: users.
The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels.
See: https://developers.google.com/gmail/api/api/reference/rest/v1/users
raw docstring

drafts-create$clj

(drafts-create$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/create

Required parameters: userId

Optional parameters: none

Body:

{:message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}, :id string}

Creates a new draft with the DRAFT label.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/create

Required parameters: userId

Optional parameters: none

Body: 

{:message {:threadId string,
           :payload MessagePart,
           :historyId string,
           :raw string,
           :labelIds [string],
           :snippet string,
           :id string,
           :sizeEstimate integer,
           :internalDate string},
 :id string}

Creates a new draft with the `DRAFT` label.
sourceraw docstring

drafts-delete$clj

(drafts-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/delete

Required parameters: userId, id

Optional parameters: none

Immediately and permanently deletes the specified draft. Does not simply trash it.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/delete

Required parameters: userId, id

Optional parameters: none

Immediately and permanently deletes the specified draft. Does not simply trash it.
sourceraw docstring

drafts-get$clj

(drafts-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/get

Required parameters: userId, id

Optional parameters: format

Gets the specified draft.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/get

Required parameters: userId, id

Optional parameters: format

Gets the specified draft.
sourceraw docstring

drafts-list$clj

(drafts-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/list

Required parameters: userId

Optional parameters: includeSpamTrash, pageToken, maxResults, q

Lists the drafts in the user's mailbox.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/list

Required parameters: userId

Optional parameters: includeSpamTrash, pageToken, maxResults, q

Lists the drafts in the user's mailbox.
sourceraw docstring

drafts-send$clj

(drafts-send$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/send

Required parameters: userId

Optional parameters: none

Body:

{:message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}, :id string}

Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/send

Required parameters: userId

Optional parameters: none

Body: 

{:message {:threadId string,
           :payload MessagePart,
           :historyId string,
           :raw string,
           :labelIds [string],
           :snippet string,
           :id string,
           :sizeEstimate integer,
           :internalDate string},
 :id string}

Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers.
sourceraw docstring

drafts-update$clj

(drafts-update$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/update

Required parameters: userId, id

Optional parameters: none

Body:

{:message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}, :id string}

Replaces a draft's content.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/drafts/update

Required parameters: userId, id

Optional parameters: none

Body: 

{:message {:threadId string,
           :payload MessagePart,
           :historyId string,
           :raw string,
           :labelIds [string],
           :snippet string,
           :id string,
           :sizeEstimate integer,
           :internalDate string},
 :id string}

Replaces a draft's content.
sourceraw docstring

getProfile$clj

(getProfile$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/getProfile

Required parameters: userId

Optional parameters: none

Gets the current user's Gmail profile.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/getProfile

Required parameters: userId

Optional parameters: none

Gets the current user's Gmail profile.
sourceraw docstring

history-list$clj

(history-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/history/list

Required parameters: userId

Optional parameters: startHistoryId, maxResults, historyTypes, pageToken, labelId

Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).

https://developers.google.com/gmail/api/api/reference/rest/v1/users/history/list

Required parameters: userId

Optional parameters: startHistoryId, maxResults, historyTypes, pageToken, labelId

Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing `historyId`).
sourceraw docstring

labels-create$clj

(labels-create$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/create

Required parameters: userId

Optional parameters: none

Body:

{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:textColor string, :backgroundColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}

Creates a new label.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/create

Required parameters: userId

Optional parameters: none

Body: 

{:threadsUnread integer,
 :threadsTotal integer,
 :messagesTotal integer,
 :labelListVisibility string,
 :color {:textColor string, :backgroundColor string},
 :messagesUnread integer,
 :name string,
 :messageListVisibility string,
 :type string,
 :id string}

Creates a new label.
sourceraw docstring

labels-delete$clj

(labels-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/delete

Required parameters: userId, id

Optional parameters: none

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

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/delete

Required parameters: userId, id

Optional parameters: none

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

labels-get$clj

(labels-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/get

Required parameters: id, userId

Optional parameters: none

Gets the specified label.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/get

Required parameters: id, userId

Optional parameters: none

Gets the specified label.
sourceraw docstring

labels-list$clj

(labels-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/list

Required parameters: userId

Optional parameters: none

Lists all labels in the user's mailbox.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/list

Required parameters: userId

Optional parameters: none

Lists all labels in the user's mailbox.
sourceraw docstring

labels-patch$clj

(labels-patch$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/patch

Required parameters: id, userId

Optional parameters: none

Body:

{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:textColor string, :backgroundColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}

Patch the specified label.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/patch

Required parameters: id, userId

Optional parameters: none

Body: 

{:threadsUnread integer,
 :threadsTotal integer,
 :messagesTotal integer,
 :labelListVisibility string,
 :color {:textColor string, :backgroundColor string},
 :messagesUnread integer,
 :name string,
 :messageListVisibility string,
 :type string,
 :id string}

Patch the specified label.
sourceraw docstring

labels-update$clj

(labels-update$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/update

Required parameters: userId, id

Optional parameters: none

Body:

{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:textColor string, :backgroundColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}

Updates the specified label.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/labels/update

Required parameters: userId, id

Optional parameters: none

Body: 

{:threadsUnread integer,
 :threadsTotal integer,
 :messagesTotal integer,
 :labelListVisibility string,
 :color {:textColor string, :backgroundColor string},
 :messagesUnread integer,
 :name string,
 :messageListVisibility string,
 :type string,
 :id string}

Updates the specified label.
sourceraw docstring

messages-attachments-get$clj

(messages-attachments-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/attachments/get

Required parameters: id, userId, messageId

Optional parameters: none

Gets the specified message attachment.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/attachments/get

Required parameters: id, userId, messageId

Optional parameters: none

Gets the specified message attachment.
sourceraw docstring

messages-batchDelete$clj

(messages-batchDelete$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchDelete

Required parameters: userId

Optional parameters: none

Body:

{:ids [string]}

Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchDelete

Required parameters: userId

Optional parameters: none

Body: 

{:ids [string]}

Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.
sourceraw docstring

messages-batchModify$clj

(messages-batchModify$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchModify

Required parameters: userId

Optional parameters: none

Body:

{:removeLabelIds [string], :ids [string], :addLabelIds [string]}

Modifies the labels on the specified messages.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/batchModify

Required parameters: userId

Optional parameters: none

Body: 

{:removeLabelIds [string], :ids [string], :addLabelIds [string]}

Modifies the labels on the specified messages.
sourceraw docstring

messages-delete$clj

(messages-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/delete

Required parameters: userId, id

Optional parameters: none

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

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/delete

Required parameters: userId, id

Optional parameters: none

Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer `messages.trash` instead.
sourceraw docstring

messages-get$clj

(messages-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/get

Required parameters: id, userId

Optional parameters: metadataHeaders, format

Gets the specified message.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/get

Required parameters: id, userId

Optional parameters: metadataHeaders, format

Gets the specified message.
sourceraw docstring

messages-import$clj

(messages-import$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/import

Required parameters: userId

Optional parameters: deleted, processForCalendar, internalDateSource, neverMarkSpam

Body:

{:threadId string, :payload {:headers [MessagePartHeader], :body MessagePartBody, :mimeType string, :filename string, :parts [MessagePart], :partId string}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}

Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message. Note: This function doesn't trigger forwarding rules or filters set up by the user.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/import

Required parameters: userId

Optional parameters: deleted, processForCalendar, internalDateSource, neverMarkSpam

Body: 

{:threadId string,
 :payload {:headers [MessagePartHeader],
           :body MessagePartBody,
           :mimeType string,
           :filename string,
           :parts [MessagePart],
           :partId string},
 :historyId string,
 :raw string,
 :labelIds [string],
 :snippet string,
 :id string,
 :sizeEstimate integer,
 :internalDate string}

Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message. Note: This function doesn't trigger forwarding rules or filters set up by the user.
sourceraw docstring

messages-insert$clj

(messages-insert$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/insert

Required parameters: userId

Optional parameters: internalDateSource, deleted

Body:

{:threadId string, :payload {:headers [MessagePartHeader], :body MessagePartBody, :mimeType string, :filename string, :parts [MessagePart], :partId string}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}

Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/insert

Required parameters: userId

Optional parameters: internalDateSource, deleted

Body: 

{:threadId string,
 :payload {:headers [MessagePartHeader],
           :body MessagePartBody,
           :mimeType string,
           :filename string,
           :parts [MessagePart],
           :partId string},
 :historyId string,
 :raw string,
 :labelIds [string],
 :snippet string,
 :id string,
 :sizeEstimate integer,
 :internalDate string}

Directly inserts a message into only this user's mailbox similar to `IMAP APPEND`, bypassing most scanning and classification. Does not send a message.
sourceraw docstring

messages-list$clj

(messages-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/list

Required parameters: userId

Optional parameters: pageToken, includeSpamTrash, maxResults, labelIds, q

Lists the messages in the user's mailbox.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/list

Required parameters: userId

Optional parameters: pageToken, includeSpamTrash, maxResults, labelIds, q

Lists the messages in the user's mailbox.
sourceraw docstring

messages-modify$clj

(messages-modify$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/modify

Required parameters: id, userId

Optional parameters: none

Body:

{:addLabelIds [string], :removeLabelIds [string]}

Modifies the labels on the specified message.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/modify

Required parameters: id, userId

Optional parameters: none

Body: 

{:addLabelIds [string], :removeLabelIds [string]}

Modifies the labels on the specified message.
sourceraw docstring

messages-send$clj

(messages-send$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/send

Required parameters: userId

Optional parameters: none

Body:

{:threadId string, :payload {:headers [MessagePartHeader], :body MessagePartBody, :mimeType string, :filename string, :parts [MessagePart], :partId string}, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate string}

Sends the specified message to the recipients in the To, Cc, and Bcc headers.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/send

Required parameters: userId

Optional parameters: none

Body: 

{:threadId string,
 :payload {:headers [MessagePartHeader],
           :body MessagePartBody,
           :mimeType string,
           :filename string,
           :parts [MessagePart],
           :partId string},
 :historyId string,
 :raw string,
 :labelIds [string],
 :snippet string,
 :id string,
 :sizeEstimate integer,
 :internalDate string}

Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers.
sourceraw docstring

messages-trash$clj

(messages-trash$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/trash

Required parameters: id, userId

Optional parameters: none

Moves the specified message to the trash.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/trash

Required parameters: id, userId

Optional parameters: none

Moves the specified message to the trash.
sourceraw docstring

messages-untrash$clj

(messages-untrash$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/untrash

Required parameters: id, userId

Optional parameters: none

Removes the specified message from the trash.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/messages/untrash

Required parameters: id, userId

Optional parameters: none

Removes the specified message from the trash.
sourceraw docstring

settings-delegates-create$clj

(settings-delegates-create$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/create

Required parameters: userId

Optional parameters: none

Body:

{:delegateEmail string, :verificationStatus string}

Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/create

Required parameters: userId

Optional parameters: none

Body: 

{:delegateEmail string, :verificationStatus string}

Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-delegates-delete$clj

(settings-delegates-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/delete

Required parameters: delegateEmail, userId

Optional parameters: none

Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/delete

Required parameters: delegateEmail, userId

Optional parameters: none

Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-delegates-get$clj

(settings-delegates-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/get

Required parameters: userId, delegateEmail

Optional parameters: none

Gets the specified delegate. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/get

Required parameters: userId, delegateEmail

Optional parameters: none

Gets the specified delegate. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-delegates-list$clj

(settings-delegates-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/list

Required parameters: userId

Optional parameters: none

Lists the delegates for the specified account. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/delegates/list

Required parameters: userId

Optional parameters: none

Lists the delegates for the specified account. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-filters-create$clj

(settings-filters-create$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/create

Required parameters: userId

Optional parameters: none

Body:

{:criteria {:excludeChats boolean, :hasAttachment boolean, :sizeComparison string, :size integer, :negatedQuery string, :from string, :query string, :subject string, :to string}, :id string, :action {:addLabelIds [string], :removeLabelIds [string], :forward string}}

Creates a filter. Note: you can only create a maximum of 1,000 filters.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/create

Required parameters: userId

Optional parameters: none

Body: 

{:criteria {:excludeChats boolean,
            :hasAttachment boolean,
            :sizeComparison string,
            :size integer,
            :negatedQuery string,
            :from string,
            :query string,
            :subject string,
            :to string},
 :id string,
 :action {:addLabelIds [string],
          :removeLabelIds [string],
          :forward string}}

Creates a filter. Note: you can only create a maximum of 1,000 filters.
sourceraw docstring

settings-filters-delete$clj

(settings-filters-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/delete

Required parameters: id, userId

Optional parameters: none

Deletes a filter.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/delete

Required parameters: id, userId

Optional parameters: none

Deletes a filter.
sourceraw docstring

settings-filters-get$clj

(settings-filters-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/get

Required parameters: id, userId

Optional parameters: none

Gets a filter.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/get

Required parameters: id, userId

Optional parameters: none

Gets a filter.
sourceraw docstring

settings-filters-list$clj

(settings-filters-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/list

Required parameters: userId

Optional parameters: none

Lists the message filters of a Gmail user.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/filters/list

Required parameters: userId

Optional parameters: none

Lists the message filters of a Gmail user.
sourceraw docstring

settings-forwardingAddresses-create$clj

(settings-forwardingAddresses-create$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/create

Required parameters: userId

Optional parameters: none

Body:

{:verificationStatus string, :forwardingEmail string}

Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/create

Required parameters: userId

Optional parameters: none

Body: 

{:verificationStatus string, :forwardingEmail string}

Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to `pending`; otherwise, the resource will be created with verification status set to `accepted`. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-forwardingAddresses-delete$clj

(settings-forwardingAddresses-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/delete

Required parameters: userId, forwardingEmail

Optional parameters: none

Deletes the specified forwarding address and revokes any verification that may have been required. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/delete

Required parameters: userId, forwardingEmail

Optional parameters: none

Deletes the specified forwarding address and revokes any verification that may have been required. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-forwardingAddresses-get$clj

(settings-forwardingAddresses-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/get

Required parameters: forwardingEmail, userId

Optional parameters: none

Gets the specified forwarding address.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/get

Required parameters: forwardingEmail, userId

Optional parameters: none

Gets the specified forwarding address.
sourceraw docstring

settings-forwardingAddresses-list$clj

(settings-forwardingAddresses-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/list

Required parameters: userId

Optional parameters: none

Lists the forwarding addresses for the specified account.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/forwardingAddresses/list

Required parameters: userId

Optional parameters: none

Lists the forwarding addresses for the specified account.
sourceraw docstring

settings-getAutoForwarding$clj

(settings-getAutoForwarding$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getAutoForwarding

Required parameters: userId

Optional parameters: none

Gets the auto-forwarding setting for the specified account.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getAutoForwarding

Required parameters: userId

Optional parameters: none

Gets the auto-forwarding setting for the specified account.
sourceraw docstring

settings-getImap$clj

(settings-getImap$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getImap

Required parameters: userId

Optional parameters: none

Gets IMAP settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getImap

Required parameters: userId

Optional parameters: none

Gets IMAP settings.
sourceraw docstring

settings-getLanguage$clj

(settings-getLanguage$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getLanguage

Required parameters: userId

Optional parameters: none

Gets language settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getLanguage

Required parameters: userId

Optional parameters: none

Gets language settings.
sourceraw docstring

settings-getPop$clj

(settings-getPop$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getPop

Required parameters: userId

Optional parameters: none

Gets POP settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getPop

Required parameters: userId

Optional parameters: none

Gets POP settings.
sourceraw docstring

settings-getVacation$clj

(settings-getVacation$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getVacation

Required parameters: userId

Optional parameters: none

Gets vacation responder settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/getVacation

Required parameters: userId

Optional parameters: none

Gets vacation responder settings.
sourceraw docstring

settings-sendAs-create$clj

(settings-sendAs-create$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/create

Required parameters: userId

Optional parameters: none

Body:

{:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :username string, :securityMode string, :port integer}}

Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/create

Required parameters: userId

Optional parameters: none

Body: 

{:treatAsAlias boolean,
 :isDefault boolean,
 :displayName string,
 :isPrimary boolean,
 :signature string,
 :sendAsEmail string,
 :verificationStatus string,
 :replyToAddress string,
 :smtpMsa {:host string,
           :password string,
           :username string,
           :securityMode string,
           :port integer}}

Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to `pending`; otherwise, the resource will be created with verification status set to `accepted`. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-sendAs-delete$clj

(settings-sendAs-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/delete

Required parameters: sendAsEmail, userId

Optional parameters: none

Deletes the specified send-as alias. Revokes any verification that may have been required for using it. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/delete

Required parameters: sendAsEmail, userId

Optional parameters: none

Deletes the specified send-as alias. Revokes any verification that may have been required for using it. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-sendAs-get$clj

(settings-sendAs-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/get

Required parameters: userId, sendAsEmail

Optional parameters: none

Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/get

Required parameters: userId, sendAsEmail

Optional parameters: none

Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.
sourceraw docstring

settings-sendAs-list$clj

(settings-sendAs-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/list

Required parameters: userId

Optional parameters: none

Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/list

Required parameters: userId

Optional parameters: none

Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases.
sourceraw docstring

settings-sendAs-patch$clj

(settings-sendAs-patch$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/patch

Required parameters: sendAsEmail, userId

Optional parameters: none

Body:

{:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :username string, :securityMode string, :port integer}}

Patch the specified send-as alias.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/patch

Required parameters: sendAsEmail, userId

Optional parameters: none

Body: 

{:treatAsAlias boolean,
 :isDefault boolean,
 :displayName string,
 :isPrimary boolean,
 :signature string,
 :sendAsEmail string,
 :verificationStatus string,
 :replyToAddress string,
 :smtpMsa {:host string,
           :password string,
           :username string,
           :securityMode string,
           :port integer}}

Patch the specified send-as alias.
sourceraw docstring

settings-sendAs-smimeInfo-delete$clj

(settings-sendAs-smimeInfo-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/delete

Required parameters: id, sendAsEmail, userId

Optional parameters: none

Deletes the specified S/MIME config for the specified send-as alias.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/delete

Required parameters: id, sendAsEmail, userId

Optional parameters: none

Deletes the specified S/MIME config for the specified send-as alias.
sourceraw docstring

settings-sendAs-smimeInfo-get$clj

(settings-sendAs-smimeInfo-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/get

Required parameters: sendAsEmail, userId, id

Optional parameters: none

Gets the specified S/MIME config for the specified send-as alias.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/get

Required parameters: sendAsEmail, userId, id

Optional parameters: none

Gets the specified S/MIME config for the specified send-as alias.
sourceraw docstring

settings-sendAs-smimeInfo-insert$clj

(settings-sendAs-smimeInfo-insert$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/insert

Required parameters: sendAsEmail, userId

Optional parameters: none

Body:

{:pkcs12 string, :isDefault boolean, :pem string, :expiration string, :id string, :encryptedKeyPassword string, :issuerCn string}

Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/insert

Required parameters: sendAsEmail, userId

Optional parameters: none

Body: 

{:pkcs12 string,
 :isDefault boolean,
 :pem string,
 :expiration string,
 :id string,
 :encryptedKeyPassword string,
 :issuerCn string}

Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
sourceraw docstring

settings-sendAs-smimeInfo-list$clj

(settings-sendAs-smimeInfo-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/list

Required parameters: userId, sendAsEmail

Optional parameters: none

Lists S/MIME configs for the specified send-as alias.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/list

Required parameters: userId, sendAsEmail

Optional parameters: none

Lists S/MIME configs for the specified send-as alias.
sourceraw docstring

settings-sendAs-smimeInfo-setDefault$clj

(settings-sendAs-smimeInfo-setDefault$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/setDefault

Required parameters: id, sendAsEmail, userId

Optional parameters: none

Sets the default S/MIME config for the specified send-as alias.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/smimeInfo/setDefault

Required parameters: id, sendAsEmail, userId

Optional parameters: none

Sets the default S/MIME config for the specified send-as alias.
sourceraw docstring

settings-sendAs-update$clj

(settings-sendAs-update$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/update

Required parameters: sendAsEmail, userId

Optional parameters: none

Body:

{:treatAsAlias boolean, :isDefault boolean, :displayName string, :isPrimary boolean, :signature string, :sendAsEmail string, :verificationStatus string, :replyToAddress string, :smtpMsa {:host string, :password string, :username string, :securityMode string, :port integer}}

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/update

Required parameters: sendAsEmail, userId

Optional parameters: none

Body: 

{:treatAsAlias boolean,
 :isDefault boolean,
 :displayName string,
 :isPrimary boolean,
 :signature string,
 :sendAsEmail string,
 :verificationStatus string,
 :replyToAddress string,
 :smtpMsa {:host string,
           :password string,
           :username string,
           :securityMode string,
           :port integer}}

Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-sendAs-verify$clj

(settings-sendAs-verify$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/verify

Required parameters: sendAsEmail, userId

Optional parameters: none

Sends a verification email to the specified send-as alias address. The verification status must be pending. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/sendAs/verify

Required parameters: sendAsEmail, userId

Optional parameters: none

Sends a verification email to the specified send-as alias address. The verification status must be `pending`. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-updateAutoForwarding$clj

(settings-updateAutoForwarding$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateAutoForwarding

Required parameters: userId

Optional parameters: none

Body:

{:disposition string, :emailAddress string, :enabled boolean}

Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateAutoForwarding

Required parameters: userId

Optional parameters: none

Body: 

{:disposition string, :emailAddress string, :enabled boolean}

Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. This method is only available to service account clients that have been delegated domain-wide authority.
sourceraw docstring

settings-updateImap$clj

(settings-updateImap$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateImap

Required parameters: userId

Optional parameters: none

Body:

{:expungeBehavior string, :maxFolderSize integer, :autoExpunge boolean, :enabled boolean}

Updates IMAP settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateImap

Required parameters: userId

Optional parameters: none

Body: 

{:expungeBehavior string,
 :maxFolderSize integer,
 :autoExpunge boolean,
 :enabled boolean}

Updates IMAP settings.
sourceraw docstring

settings-updateLanguage$clj

(settings-updateLanguage$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateLanguage

Required parameters: userId

Optional parameters: none

Body:

{:displayLanguage string}

Updates language settings. If successful, the return object contains the displayLanguage that was saved for the user, which may differ from the value passed into the request. This is because the requested displayLanguage may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateLanguage

Required parameters: userId

Optional parameters: none

Body: 

{:displayLanguage string}

Updates language settings. If successful, the return object contains the `displayLanguage` that was saved for the user, which may differ from the value passed into the request. This is because the requested `displayLanguage` may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead.
sourceraw docstring

settings-updatePop$clj

(settings-updatePop$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updatePop

Required parameters: userId

Optional parameters: none

Body:

{:accessWindow string, :disposition string}

Updates POP settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updatePop

Required parameters: userId

Optional parameters: none

Body: 

{:accessWindow string, :disposition string}

Updates POP settings.
sourceraw docstring

settings-updateVacation$clj

(settings-updateVacation$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateVacation

Required parameters: userId

Optional parameters: none

Body:

{:startTime string, :responseBodyPlainText string, :enableAutoReply boolean, :responseSubject string, :restrictToDomain boolean, :responseBodyHtml string, :endTime string, :restrictToContacts boolean}

Updates vacation responder settings.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/settings/updateVacation

Required parameters: userId

Optional parameters: none

Body: 

{:startTime string,
 :responseBodyPlainText string,
 :enableAutoReply boolean,
 :responseSubject string,
 :restrictToDomain boolean,
 :responseBodyHtml string,
 :endTime string,
 :restrictToContacts boolean}

Updates vacation responder settings.
sourceraw docstring

stop$clj

(stop$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/stop

Required parameters: userId

Optional parameters: none

Stop receiving push notifications for the given user mailbox.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/stop

Required parameters: userId

Optional parameters: none

Stop receiving push notifications for the given user mailbox.
sourceraw docstring

threads-delete$clj

(threads-delete$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/delete

Required parameters: id, userId

Optional parameters: none

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

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/delete

Required parameters: id, userId

Optional parameters: none

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

threads-get$clj

(threads-get$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/get

Required parameters: userId, id

Optional parameters: format, metadataHeaders

Gets the specified thread.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/get

Required parameters: userId, id

Optional parameters: format, metadataHeaders

Gets the specified thread.
sourceraw docstring

threads-list$clj

(threads-list$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/list

Required parameters: userId

Optional parameters: q, maxResults, pageToken, includeSpamTrash, labelIds

Lists the threads in the user's mailbox.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/list

Required parameters: userId

Optional parameters: q, maxResults, pageToken, includeSpamTrash, labelIds

Lists the threads in the user's mailbox.
sourceraw docstring

threads-modify$clj

(threads-modify$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/modify

Required parameters: id, userId

Optional parameters: none

Body:

{:addLabelIds [string], :removeLabelIds [string]}

Modifies the labels applied to the thread. This applies to all messages in the thread.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/modify

Required parameters: id, userId

Optional parameters: none

Body: 

{:addLabelIds [string], :removeLabelIds [string]}

Modifies the labels applied to the thread. This applies to all messages in the thread.
sourceraw docstring

threads-trash$clj

(threads-trash$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/trash

Required parameters: userId, id

Optional parameters: none

Moves the specified thread to the trash.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/trash

Required parameters: userId, id

Optional parameters: none

Moves the specified thread to the trash.
sourceraw docstring

threads-untrash$clj

(threads-untrash$ auth parameters)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/untrash

Required parameters: id, userId

Optional parameters: none

Removes the specified thread from the trash.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/threads/untrash

Required parameters: id, userId

Optional parameters: none

Removes the specified thread from the trash.
sourceraw docstring

watch$clj

(watch$ auth parameters body)

https://developers.google.com/gmail/api/api/reference/rest/v1/users/watch

Required parameters: userId

Optional parameters: none

Body:

{:labelFilterAction string, :topicName string, :labelIds [string]}

Set up or update a push notification watch on the given user mailbox.

https://developers.google.com/gmail/api/api/reference/rest/v1/users/watch

Required parameters: userId

Optional parameters: none

Body: 

{:labelFilterAction string, :topicName string, :labelIds [string]}

Set up or update a push notification watch on the given user mailbox.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close