UsersSettingsForwardingAddresses
class UsersSettingsForwardingAddresses extends Resource (View source)
The "forwardingAddresses" collection of methods.
Typical usage is:
$gmailService = new Google\Service\Gmail(...);
$forwardingAddresses = $gmailService->users_settings_forwardingAddresses;
Methods
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.
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.
Gets the specified forwarding address. (forwardingAddresses.get)
Lists the forwarding addresses for the specified account.
Details
ForwardingAddress
create(string $userId, ForwardingAddress $postBody, array $optParams = [])
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.
(forwardingAddresses.create)
delete(string $userId, string $forwardingEmail, array $optParams = [])
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.
(forwardingAddresses.delete)
ForwardingAddress
get(string $userId, string $forwardingEmail, array $optParams = [])
Gets the specified forwarding address. (forwardingAddresses.get)
ListForwardingAddressesResponse
listUsersSettingsForwardingAddresses(string $userId, array $optParams = [])
Lists the forwarding addresses for the specified account.
(forwardingAddresses.listUsersSettingsForwardingAddresses)