Documentation

Google_Service_Gmail extends Google_Service
in package

Service definition for Gmail (v1).

The Gmail API lets you view and manage Gmail mailbox data like threads, messages, and labels.

For more information about this service, see the API Documentation

Tags
author

Google, Inc.

Table of Contents

GMAIL_ADDONS_CURRENT_ACTION_COMPOSE  = "https://www.googleapis.com/auth/gmail.addons.current.action.compose"
Manage drafts and send emails when you interact with the add-on.
GMAIL_ADDONS_CURRENT_MESSAGE_ACTION  = "https://www.googleapis.com/auth/gmail.addons.current.message.action"
View your email messages when you interact with the add-on.
GMAIL_ADDONS_CURRENT_MESSAGE_METADATA  = "https://www.googleapis.com/auth/gmail.addons.current.message.metadata"
View your email message metadata when the add-on is running.
GMAIL_ADDONS_CURRENT_MESSAGE_READONLY  = "https://www.googleapis.com/auth/gmail.addons.current.message.readonly"
View your email messages when the add-on is running.
GMAIL_COMPOSE  = "https://www.googleapis.com/auth/gmail.compose"
Manage drafts and send emails.
GMAIL_INSERT  = "https://www.googleapis.com/auth/gmail.insert"
Insert mail into your mailbox.
GMAIL_LABELS  = "https://www.googleapis.com/auth/gmail.labels"
Manage mailbox labels.
GMAIL_METADATA  = "https://www.googleapis.com/auth/gmail.metadata"
View your email message metadata such as labels and headers, but not the email body.
GMAIL_MODIFY  = "https://www.googleapis.com/auth/gmail.modify"
View and modify but not delete your email.
GMAIL_READONLY  = "https://www.googleapis.com/auth/gmail.readonly"
View your email messages and settings.
GMAIL_SEND  = "https://www.googleapis.com/auth/gmail.send"
Send email on your behalf.
GMAIL_SETTINGS_BASIC  = "https://www.googleapis.com/auth/gmail.settings.basic"
Manage your basic mail settings.
GMAIL_SETTINGS_SHARING  = "https://www.googleapis.com/auth/gmail.settings.sharing"
Manage your sensitive mail settings, including who can manage your mail.
MAIL_GOOGLE_COM  = "https://mail.google.com/"
Read, compose, send, and permanently delete all your email from Gmail.
$availableScopes  : mixed
$batchPath  : mixed
$resource  : mixed
$rootUrl  : mixed
$servicePath  : mixed
$users  : mixed
$users_drafts  : mixed
$users_history  : mixed
$users_labels  : mixed
$users_messages  : mixed
$users_messages_attachments  : mixed
$users_settings  : mixed
$users_settings_delegates  : mixed
$users_settings_filters  : mixed
$users_settings_forwardingAddresses  : mixed
$users_settings_sendAs  : mixed
$users_settings_sendAs_smimeInfo  : mixed
$users_threads  : mixed
$version  : mixed
$client  : mixed
__construct()  : mixed
Constructs the internal representation of the Gmail service.
createBatch()  : Google_Http_Batch
Create a new HTTP Batch handler for this service
getClient()  : Google_Client
Return the associated Google_Client class.

Constants

GMAIL_ADDONS_CURRENT_ACTION_COMPOSE

Manage drafts and send emails when you interact with the add-on.

public mixed GMAIL_ADDONS_CURRENT_ACTION_COMPOSE = "https://www.googleapis.com/auth/gmail.addons.current.action.compose"

GMAIL_ADDONS_CURRENT_MESSAGE_ACTION

View your email messages when you interact with the add-on.

public mixed GMAIL_ADDONS_CURRENT_MESSAGE_ACTION = "https://www.googleapis.com/auth/gmail.addons.current.message.action"

GMAIL_ADDONS_CURRENT_MESSAGE_METADATA

View your email message metadata when the add-on is running.

public mixed GMAIL_ADDONS_CURRENT_MESSAGE_METADATA = "https://www.googleapis.com/auth/gmail.addons.current.message.metadata"

GMAIL_ADDONS_CURRENT_MESSAGE_READONLY

View your email messages when the add-on is running.

public mixed GMAIL_ADDONS_CURRENT_MESSAGE_READONLY = "https://www.googleapis.com/auth/gmail.addons.current.message.readonly"

GMAIL_COMPOSE

Manage drafts and send emails.

public mixed GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"

GMAIL_INSERT

Insert mail into your mailbox.

public mixed GMAIL_INSERT = "https://www.googleapis.com/auth/gmail.insert"

GMAIL_LABELS

Manage mailbox labels.

public mixed GMAIL_LABELS = "https://www.googleapis.com/auth/gmail.labels"

GMAIL_METADATA

View your email message metadata such as labels and headers, but not the email body.

public mixed GMAIL_METADATA = "https://www.googleapis.com/auth/gmail.metadata"

GMAIL_MODIFY

View and modify but not delete your email.

public mixed GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"

GMAIL_READONLY

View your email messages and settings.

public mixed GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"

GMAIL_SEND

Send email on your behalf.

public mixed GMAIL_SEND = "https://www.googleapis.com/auth/gmail.send"

GMAIL_SETTINGS_BASIC

Manage your basic mail settings.

public mixed GMAIL_SETTINGS_BASIC = "https://www.googleapis.com/auth/gmail.settings.basic"

GMAIL_SETTINGS_SHARING

Manage your sensitive mail settings, including who can manage your mail.

public mixed GMAIL_SETTINGS_SHARING = "https://www.googleapis.com/auth/gmail.settings.sharing"

MAIL_GOOGLE_COM

Read, compose, send, and permanently delete all your email from Gmail.

public mixed MAIL_GOOGLE_COM = "https://mail.google.com/"

Properties

$availableScopes

public mixed $availableScopes

$servicePath

public mixed $servicePath

$users_drafts

public mixed $users_drafts

$users_history

public mixed $users_history

$users_labels

public mixed $users_labels

$users_messages

public mixed $users_messages

$users_messages_attachments

public mixed $users_messages_attachments

$users_settings

public mixed $users_settings

$users_settings_delegates

public mixed $users_settings_delegates

$users_settings_filters

public mixed $users_settings_filters

$users_settings_forwardingAddresses

public mixed $users_settings_forwardingAddresses

$users_settings_sendAs

public mixed $users_settings_sendAs

$users_settings_sendAs_smimeInfo

public mixed $users_settings_sendAs_smimeInfo

$users_threads

public mixed $users_threads

Methods

__construct()

Constructs the internal representation of the Gmail service.

public __construct(Google_Client $client[, string $rootUrl = null ]) : mixed
Parameters
$client : Google_Client

The client used to deliver requests.

$rootUrl : string = null

The root URL used for requests to the service.

Return values
mixed

Search results