class UsersPhotos extends Resource (View source)

The "photos" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Directory(...);
 $photos = $adminService->users_photos;

Methods

delete(string $userKey, array $optParams = [])

Removes the user's photo. (photos.delete)

get(string $userKey, array $optParams = [])

Retrieves the user's photo. (photos.get)

patch(string $userKey, UserPhoto $postBody, array $optParams = [])

Adds a photo for the user. This method supports patch semantics. (photos.patch)

update(string $userKey, UserPhoto $postBody, array $optParams = [])

Adds a photo for the user. (photos.update)

Details

delete(string $userKey, array $optParams = [])

Removes the user's photo. (photos.delete)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

array $optParams

Optional parameters.

Exceptions

Exception

UserPhoto get(string $userKey, array $optParams = [])

Retrieves the user's photo. (photos.get)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

array $optParams

Optional parameters.

Return Value

UserPhoto

Exceptions

Exception

UserPhoto patch(string $userKey, UserPhoto $postBody, array $optParams = [])

Adds a photo for the user. This method supports patch semantics. (photos.patch)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

UserPhoto $postBody
array $optParams

Optional parameters.

Return Value

UserPhoto

Exceptions

Exception

UserPhoto update(string $userKey, UserPhoto $postBody, array $optParams = [])

Adds a photo for the user. (photos.update)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

UserPhoto $postBody
array $optParams

Optional parameters.

Return Value

UserPhoto

Exceptions

Exception