SpacesSpaceEvents
class SpacesSpaceEvents extends Resource (View source)
The "spaceEvents" collection of methods.
Typical usage is:
$chatService = new Google\Service\HangoutsChat(...);
$spaceEvents = $chatService->spaces_spaceEvents;
Methods
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)
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)
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)