Method: users.spaces.getSpaceReadState
HTTP-Anfrage
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
name |
string
Erforderlich. Ressourcenname des abzurufenden Lesestatus für den Bereich. Unterstützt nur das Abrufen des Lesestatus für den aufrufenden Nutzer. Legen Sie eine der folgenden Optionen fest, um auf den aufrufenden Nutzer zu verweisen:
Der Alias me . Beispiel: users/me/spaces/{space}/spaceReadState .
Seine Workspace-E-Mail-Adresse Beispiel: users/user@example.com/spaces/{space}/spaceReadState .
Seine Nutzer-ID Beispiel: users/123456789/spaces/{space}/spaceReadState .
Format: users/{user}/spaces/{space}/spaceReadState
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von SpaceReadState
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-04-29 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-04-29 (UTC)."],[[["This document explains how to retrieve a user's read state within a Google Chat space, indicating read and unread messages."],["You can retrieve read state information for the calling user using their user ID, email address, or the \"me\" alias."],["The request requires specific authorization scopes (`chat.users.readstate` or `chat.users.readstate.readonly`) for access."],["A successful response returns a `SpaceReadState` object containing details of the user's read state in the specified space."],["Refer to the provided links for a practical example and further details on authentication and authorization."]]],["This resource retrieves a user's read state within a specific space to determine read/unread messages. It uses a `GET` HTTP request to `https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}`, employing gRPC Transcoding syntax. The `name` path parameter, which is required, identifies the user and space. The request body must be empty, while a successful response returns a `SpaceReadState` instance. User authentication with specified OAuth scopes is necessary.\n"]]