class UsersSettings extends Resource (View source)

The "settings" collection of methods.

Typical usage is:

 $gmailService = new Google\Service\Gmail(...);
 $settings = $gmailService->users_settings;

Methods

getAutoForwarding(string $userId, array $optParams = [])

Gets the auto-forwarding setting for the specified account.

getImap(string $userId, array $optParams = [])

Gets IMAP settings. (settings.getImap)

getLanguage(string $userId, array $optParams = [])

Gets language settings. (settings.getLanguage)

getPop(string $userId, array $optParams = [])

Gets POP settings. (settings.getPop)

getVacation(string $userId, array $optParams = [])

Gets vacation responder settings. (settings.getVacation)

updateAutoForwarding(string $userId, AutoForwarding $postBody, array $optParams = [])

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. (settings.updateAutoForwarding)

updateImap(string $userId, ImapSettings $postBody, array $optParams = [])

Updates IMAP settings. (settings.updateImap)

updateLanguage(string $userId, LanguageSettings $postBody, array $optParams = [])

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.

updatePop(string $userId, PopSettings $postBody, array $optParams = [])

Updates POP settings. (settings.updatePop)

updateVacation(string $userId, VacationSettings $postBody, array $optParams = [])

Updates vacation responder settings. (settings.updateVacation)

Details

AutoForwarding getAutoForwarding(string $userId, array $optParams = [])

Gets the auto-forwarding setting for the specified account.

(settings.getAutoForwarding)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

array $optParams

Optional parameters.

Return Value

AutoForwarding

Exceptions

Exception

ImapSettings getImap(string $userId, array $optParams = [])

Gets IMAP settings. (settings.getImap)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

array $optParams

Optional parameters.

Return Value

ImapSettings

Exceptions

Exception

LanguageSettings getLanguage(string $userId, array $optParams = [])

Gets language settings. (settings.getLanguage)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

array $optParams

Optional parameters.

Return Value

LanguageSettings

Exceptions

Exception

PopSettings getPop(string $userId, array $optParams = [])

Gets POP settings. (settings.getPop)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

array $optParams

Optional parameters.

Return Value

PopSettings

Exceptions

Exception

VacationSettings getVacation(string $userId, array $optParams = [])

Gets vacation responder settings. (settings.getVacation)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

array $optParams

Optional parameters.

Return Value

VacationSettings

Exceptions

Exception

AutoForwarding updateAutoForwarding(string $userId, AutoForwarding $postBody, array $optParams = [])

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. (settings.updateAutoForwarding)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

AutoForwarding $postBody
array $optParams

Optional parameters.

Return Value

AutoForwarding

Exceptions

Exception

ImapSettings updateImap(string $userId, ImapSettings $postBody, array $optParams = [])

Updates IMAP settings. (settings.updateImap)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

ImapSettings $postBody
array $optParams

Optional parameters.

Return Value

ImapSettings

Exceptions

Exception

LanguageSettings updateLanguage(string $userId, LanguageSettings $postBody, array $optParams = [])

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.

(settings.updateLanguage)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

LanguageSettings $postBody
array $optParams

Optional parameters.

Return Value

LanguageSettings

Exceptions

Exception

PopSettings updatePop(string $userId, PopSettings $postBody, array $optParams = [])

Updates POP settings. (settings.updatePop)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

PopSettings $postBody
array $optParams

Optional parameters.

Return Value

PopSettings

Exceptions

Exception

VacationSettings updateVacation(string $userId, VacationSettings $postBody, array $optParams = [])

Updates vacation responder settings. (settings.updateVacation)

Parameters

string $userId

User's email address. The special value "me" can be used to indicate the authenticated user.

VacationSettings $postBody
array $optParams

Optional parameters.

Return Value

VacationSettings

Exceptions

Exception