class UsersSpaces extends Resource (View source)

The "spaces" collection of methods.

Typical usage is:

 $chatService = new Google\Service\HangoutsChat(...);
 $spaces = $chatService->users_spaces;

Methods

getSpaceReadState(string $name, array $optParams = [])

Returns details about a user's read state within a space, used to identify read and unread messages. For an example, see Get details about a user's space read state. Requires user authentication. (spaces.getSpaceReadState)

updateSpaceReadState(string $name, SpaceReadState $postBody, array $optParams = [])

Updates a user's read state within a space, used to identify read and unread messages. For an example, see Update a user's space read state.

Details

SpaceReadState getSpaceReadState(string $name, array $optParams = [])

Returns details about a user's read state within a space, used to identify read and unread messages. For an example, see Get details about a user's space read state. Requires user authentication. (spaces.getSpaceReadState)

Parameters

string $name

Required. Resource name of the space read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following: - The me alias. For example, users/me/spaces/{space}/spaceReadState. - Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState. - Their user id. For example, users/123456789/spaces/{space}/spaceReadState. Format: users/{user}/spaces/{space}/spaceReadState

array $optParams

Optional parameters.

Return Value

SpaceReadState

Exceptions

Exception

SpaceReadState updateSpaceReadState(string $name, SpaceReadState $postBody, array $optParams = [])

Updates a user's read state within a space, used to identify read and unread messages. For an example, see Update a user's space read state.

Requires user authentication. (spaces.updateSpaceReadState)

Parameters

string $name

Resource name of the space read state. Format: users/{user}/spaces/{space}/spaceReadState

SpaceReadState $postBody
array $optParams

Optional parameters.

Return Value

SpaceReadState

Exceptions

Exception