Liking cljdoc? Tell your friends :D

happygapi.gmail.users

Gmail API: users. Access Gmail mailboxes including sending user email. See: https://developers.google.com/gmail/api/api/reference/rest/v1/users

Gmail API: users.
Access Gmail mailboxes including sending user email.
See: https://developers.google.com/gmail/api/api/reference/rest/v1/users
raw docstring

drafts-create$clj

(drafts-create$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

{:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate 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: 

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

Creates a new draft with the DRAFT label.
raw docstring

drafts-delete$clj

(drafts-delete$ auth args)

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

Required parameters: id, userId

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: id, userId

Optional parameters: none
Immediately and permanently deletes the specified draft. Does not simply trash it.
raw docstring

drafts-get$clj

(drafts-get$ auth args)

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

Required parameters: id, userId

Optional parameters: format Gets the specified draft.

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

Required parameters: id, userId

Optional parameters: format
Gets the specified draft.
raw docstring

drafts-list$clj

(drafts-list$ auth args)

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

Required parameters: userId

Optional parameters: includeSpamTrash, maxResults, pageToken, 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, maxResults, pageToken, q
Lists the drafts in the user's mailbox.
raw docstring

drafts-send$clj

(drafts-send$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

{:id string, :message {:threadId string, :payload MessagePart, :historyId string, :raw string, :labelIds [string], :snippet string, :id string, :sizeEstimate integer, :internalDate 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: 

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

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

drafts-update$clj

(drafts-update$ auth args body)

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

Required parameters: id, userId

Optional parameters: none

Body:

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

Replaces a draft's content.

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

Required parameters: id, userId

Optional parameters: none

Body: 

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

Replaces a draft's content.
raw docstring

getProfile$clj

(getProfile$ auth args)

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.
raw docstring

history-list$clj

(history-list$ auth args)

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

Required parameters: userId

Optional parameters: historyTypes, labelId, maxResults, pageToken, startHistoryId 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: historyTypes, labelId, maxResults, pageToken, startHistoryId
Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).
raw docstring

labels-create$clj

(labels-create$ auth args 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 {:backgroundColor string, :textColor 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 {:backgroundColor string, :textColor string},
 :messagesUnread integer,
 :name string,
 :messageListVisibility string,
 :type string,
 :id string}

Creates a new label.
raw docstring

labels-delete$clj

(labels-delete$ auth args)

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

Required parameters: id, userId

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: id, userId

Optional parameters: none
Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.
raw docstring

labels-get$clj

(labels-get$ auth args)

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.
raw docstring

labels-list$clj

(labels-list$ auth args)

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.
raw docstring

labels-patch$clj

(labels-patch$ auth args 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 {:backgroundColor string, :textColor string}, :messagesUnread integer, :name string, :messageListVisibility string, :type string, :id string}

Updates the specified label. This method supports patch semantics.

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 {:backgroundColor string, :textColor string},
 :messagesUnread integer,
 :name string,
 :messageListVisibility string,
 :type string,
 :id string}

Updates the specified label. This method supports patch semantics.
raw docstring

labels-update$clj

(labels-update$ auth args body)

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

Required parameters: id, userId

Optional parameters: none

Body:

{:threadsUnread integer, :threadsTotal integer, :messagesTotal integer, :labelListVisibility string, :color {:backgroundColor string, :textColor 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: id, userId

Optional parameters: none

Body: 

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

Updates the specified label.
raw docstring

messages-attachments-get$clj

(messages-attachments-get$ auth args)

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

Required parameters: id, messageId, userId

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, messageId, userId

Optional parameters: none
Gets the specified message attachment.
raw docstring

messages-batchDelete$clj

(messages-batchDelete$ auth args 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.
raw docstring

messages-batchModify$clj

(messages-batchModify$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

{:addLabelIds [string], :ids [string], :removeLabelIds [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: 

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

Modifies the labels on the specified messages.
raw docstring

messages-delete$clj

(messages-delete$ auth args)

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

Required parameters: id, userId

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: id, userId

Optional parameters: none
Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.
raw docstring

messages-get$clj

(messages-get$ auth args)

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

Required parameters: id, userId

Optional parameters: format, metadataHeaders Gets the specified message.

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

Required parameters: id, userId

Optional parameters: format, metadataHeaders
Gets the specified message.
raw docstring

messages-import$clj

(messages-import$ auth args body)

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

Required parameters: userId

Optional parameters: deleted, internalDateSource, neverMarkSpam, processForCalendar

Body:

{:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :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.

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

Required parameters: userId

Optional parameters: deleted, internalDateSource, neverMarkSpam, processForCalendar

Body: 

{:threadId string,
 :payload {:body MessagePartBody,
           :filename string,
           :headers [MessagePartHeader],
           :mimeType string,
           :partId string,
           :parts [MessagePart]},
 :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.
raw docstring

messages-insert$clj

(messages-insert$ auth args body)

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

Required parameters: userId

Optional parameters: deleted, internalDateSource

Body:

{:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :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: deleted, internalDateSource

Body: 

{:threadId string,
 :payload {:body MessagePartBody,
           :filename string,
           :headers [MessagePartHeader],
           :mimeType string,
           :partId string,
           :parts [MessagePart]},
 :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.
raw docstring

messages-list$clj

(messages-list$ auth args)

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

Required parameters: userId

Optional parameters: includeSpamTrash, labelIds, maxResults, pageToken, 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: includeSpamTrash, labelIds, maxResults, pageToken, q
Lists the messages in the user's mailbox.
raw docstring

messages-modify$clj

(messages-modify$ auth args 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.
raw docstring

messages-send$clj

(messages-send$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

{:threadId string, :payload {:body MessagePartBody, :filename string, :headers [MessagePartHeader], :mimeType string, :partId string, :parts [MessagePart]}, :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 {:body MessagePartBody,
           :filename string,
           :headers [MessagePartHeader],
           :mimeType string,
           :partId string,
           :parts [MessagePart]},
 :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.
raw docstring

messages-trash$clj

(messages-trash$ auth args)

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.
raw docstring

messages-untrash$clj

(messages-untrash$ auth args)

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.
raw docstring

settings-delegates-create$clj

(settings-delegates-create$ auth args 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.
raw docstring

settings-delegates-delete$clj

(settings-delegates-delete$ auth args)

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.
raw docstring

settings-delegates-get$clj

(settings-delegates-get$ auth args)

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

Required parameters: delegateEmail, userId

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: delegateEmail, userId

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.
raw docstring

settings-delegates-list$clj

(settings-delegates-list$ auth args)

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.
raw docstring

settings-filters-create$clj

(settings-filters-create$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

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

Creates a filter.

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

Required parameters: userId

Optional parameters: none

Body: 

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

Creates a filter.
raw docstring

settings-filters-delete$clj

(settings-filters-delete$ auth args)

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.
raw docstring

settings-filters-get$clj

(settings-filters-get$ auth args)

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.
raw docstring

settings-filters-list$clj

(settings-filters-list$ auth args)

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.
raw docstring

settings-forwardingAddresses-create$clj

(settings-forwardingAddresses-create$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

{:forwardingEmail string, :verificationStatus 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: 

{:forwardingEmail string, :verificationStatus 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.
raw docstring

settings-forwardingAddresses-delete$clj

(settings-forwardingAddresses-delete$ auth args)

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

Required parameters: forwardingEmail, userId

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: forwardingEmail, userId

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.
raw docstring

settings-forwardingAddresses-get$clj

(settings-forwardingAddresses-get$ auth args)

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.
raw docstring

settings-forwardingAddresses-list$clj

(settings-forwardingAddresses-list$ auth args)

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.
raw docstring

settings-getAutoForwarding$clj

(settings-getAutoForwarding$ auth args)

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.
raw docstring

settings-getImap$clj

(settings-getImap$ auth args)

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.
raw docstring

settings-getLanguage$clj

(settings-getLanguage$ auth args)

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.
raw docstring

settings-getPop$clj

(settings-getPop$ auth args)

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.
raw docstring

settings-getVacation$clj

(settings-getVacation$ auth args)

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.
raw docstring

settings-sendAs-create$clj

(settings-sendAs-create$ auth args 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, :port integer, :securityMode string, :username string}}

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,
           :port integer,
           :securityMode string,
           :username string}}

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.
raw docstring

settings-sendAs-delete$clj

(settings-sendAs-delete$ auth args)

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.
raw docstring

settings-sendAs-get$clj

(settings-sendAs-get$ auth args)

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

Required parameters: sendAsEmail, userId

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: sendAsEmail, userId

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.
raw docstring

settings-sendAs-list$clj

(settings-sendAs-list$ auth args)

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.
raw docstring

settings-sendAs-patch$clj

(settings-sendAs-patch$ auth args 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, :port integer, :securityMode string, :username string}}

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. This method supports patch semantics.

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,
           :port integer,
           :securityMode string,
           :username string}}

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. This method supports patch semantics.
raw docstring

settings-sendAs-smimeInfo-delete$clj

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

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.
raw docstring

settings-sendAs-smimeInfo-get$clj

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

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

Required parameters: id, sendAsEmail, userId

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: id, sendAsEmail, userId

Optional parameters: none
Gets the specified S/MIME config for the specified send-as alias.
raw docstring

settings-sendAs-smimeInfo-insert$clj

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

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

Required parameters: sendAsEmail, userId

Optional parameters: none

Body:

{:encryptedKeyPassword string, :expiration string, :id string, :isDefault boolean, :issuerCn string, :pem string, :pkcs12 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: 

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

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

settings-sendAs-smimeInfo-list$clj

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

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

Required parameters: sendAsEmail, userId

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: sendAsEmail, userId

Optional parameters: none
Lists S/MIME configs for the specified send-as alias.
raw docstring

settings-sendAs-smimeInfo-setDefault$clj

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

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.
raw docstring

settings-sendAs-update$clj

(settings-sendAs-update$ auth args 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, :port integer, :securityMode string, :username string}}

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,
           :port integer,
           :securityMode string,
           :username string}}

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.
raw docstring

settings-sendAs-verify$clj

(settings-sendAs-verify$ auth args)

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.
raw docstring

settings-updateAutoForwarding$clj

(settings-updateAutoForwarding$ auth args 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.
raw docstring

settings-updateImap$clj

(settings-updateImap$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

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

Updates IMAP settings.

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

Required parameters: userId

Optional parameters: none

Body: 

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

Updates IMAP settings.
raw docstring

settings-updateLanguage$clj

(settings-updateLanguage$ auth args 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.
raw docstring

settings-updatePop$clj

(settings-updatePop$ auth args 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.
raw docstring

settings-updateVacation$clj

(settings-updateVacation$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

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

Updates vacation responder settings.

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

Required parameters: userId

Optional parameters: none

Body: 

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

Updates vacation responder settings.
raw docstring

stop$clj

(stop$ auth args)

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.
raw docstring

threads-delete$clj

(threads-delete$ auth args)

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.
raw docstring

threads-get$clj

(threads-get$ auth args)

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

Required parameters: id, userId

Optional parameters: format, metadataHeaders Gets the specified thread.

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

Required parameters: id, userId

Optional parameters: format, metadataHeaders
Gets the specified thread.
raw docstring

threads-list$clj

(threads-list$ auth args)

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

Required parameters: userId

Optional parameters: includeSpamTrash, labelIds, maxResults, pageToken, q 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: includeSpamTrash, labelIds, maxResults, pageToken, q
Lists the threads in the user's mailbox.
raw docstring

threads-modify$clj

(threads-modify$ auth args 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.
raw docstring

threads-trash$clj

(threads-trash$ auth args)

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

Required parameters: id, userId

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: id, userId

Optional parameters: none
Moves the specified thread to the trash.
raw docstring

threads-untrash$clj

(threads-untrash$ auth args)

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.
raw docstring

watch$clj

(watch$ auth args body)

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

Required parameters: userId

Optional parameters: none

Body:

{:labelFilterAction string, :labelIds [string], :topicName 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, :labelIds [string], :topicName string}

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

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

× close