class Users extends Resource (View source)

The "users" collection of methods.

Typical usage is:

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

Methods

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

Gets the current user's Gmail profile. (users.getProfile)

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

Stop receiving push notifications for the given user mailbox. (users.stop)

watch(string $userId, WatchRequest $postBody, array $optParams = [])

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

Details

Profile getProfile(string $userId, array $optParams = [])

Gets the current user's Gmail profile. (users.getProfile)

Parameters

string $userId

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

array $optParams

Optional parameters.

Return Value

Profile

Exceptions

Exception

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

Stop receiving push notifications for the given user mailbox. (users.stop)

Parameters

string $userId

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

array $optParams

Optional parameters.

Exceptions

Exception

WatchResponse watch(string $userId, WatchRequest $postBody, array $optParams = [])

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

(users.watch)

Parameters

string $userId

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

WatchRequest $postBody
array $optParams

Optional parameters.

Return Value

WatchResponse

Exceptions

Exception