class SpacesSpaceEvents extends Resource (View source)

The "spaceEvents" collection of methods.

Typical usage is:

 $chatService = new Google\Service\HangoutsChat(...);
 $spaceEvents = $chatService->spaces_spaceEvents;

Methods

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

Returns an event from a Google Chat space. The event payload contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated Message resource in the event payload. Requires user authentication. To get an event, the authenticated user must be a member of the space. For an example, see Get details about an event from a Google Chat space. (spaceEvents.get)

listSpacesSpaceEvents(string $parent, array $optParams = [])

Lists events from a Google Chat space. For each event, the [payload](https:// developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents

SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the

Chat resource. For example, if you list events about new space members, the server returns Membership resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty Membership resource. Requires user authentication. To list events, the authenticated user must be a member of the space. For an example, see List events from a Google Chat space.

Details

SpaceEvent get(string $name, array $optParams = [])

Returns an event from a Google Chat space. The event payload contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated Message resource in the event payload. Requires user authentication. To get an event, the authenticated user must be a member of the space. For an example, see Get details about an event from a Google Chat space. (spaceEvents.get)

Parameters

string $name

Required. The resource name of the space event. Format: spaces/{space}/spaceEvents/{spaceEvent}

array $optParams

Optional parameters.

Return Value

SpaceEvent

Exceptions

Exception

ListSpaceEventsResponse listSpacesSpaceEvents(string $parent, array $optParams = [])

Lists events from a Google Chat space. For each event, the [payload](https:// developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents

SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the

Chat resource. For example, if you list events about new space members, the server returns Membership resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty Membership resource. Requires user authentication. To list events, the authenticated user must be a member of the space. For an example, see List events from a Google Chat space.

(spaceEvents.listSpacesSpaceEvents)

Parameters

string $parent

Required. Resource name of the Google Chat space where the events occurred. Format: spaces/{space}.

array $optParams

Optional parameters.

Return Value

ListSpaceEventsResponse

Exceptions

Exception