Show / Hide Table of Contents

Class SpacesResource.SpaceEventsResource

The "spaceEvents" collection of methods.

Inheritance
object
SpacesResource.SpaceEventsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.SpaceEventsResource

Constructors

SpaceEventsResource(IClientService)

Constructs a new resource.

Declaration
public SpaceEventsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string)

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. Note: The permissionSettings field is not returned in the Space object of the Space event data for this request. Requires user authentication with an authorization scope appropriate for reading the requested data: - https://www.googleapis.com/auth/chat.spaces.readonly - https://www.googleapis.com/auth/chat.spaces - https://www.googleapis.com/auth/chat.messages.readonly

  • https://www.googleapis.com/auth/chat.messages - https://www.googleapis.com/auth/chat.messages.reactions.readonly - https://www.googleapis.com/auth/chat.messages.reactions - https://www.googleapis.com/auth/chat.memberships.readonly - https://www.googleapis.com/auth/chat.memberships 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.
Declaration
public virtual SpacesResource.SpaceEventsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
SpacesResource.SpaceEventsResource.GetRequest

List(string)

Lists events from a Google Chat space. For each event, the 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 with an authorization scope appropriate for reading the requested data: - https://www.googleapis.com/auth/chat.spaces.readonly - https://www.googleapis.com/auth/chat.spaces - https://www.googleapis.com/auth/chat.messages.readonly

  • https://www.googleapis.com/auth/chat.messages - https://www.googleapis.com/auth/chat.messages.reactions.readonly - https://www.googleapis.com/auth/chat.messages.reactions - https://www.googleapis.com/auth/chat.memberships.readonly - https://www.googleapis.com/auth/chat.memberships To list events, the authenticated user must be a member of the space. For an example, see List events from a Google Chat space.
Declaration
public virtual SpacesResource.SpaceEventsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

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

Returns
Type Description
SpacesResource.SpaceEventsResource.ListRequest
In this article
Back to top Generated by DocFX