Method: users.spaces.getSpaceReadState
Richiesta HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
name |
string
Obbligatoria. Nome risorsa dello stato di lettura dello spazio da recuperare. Supporta solo il recupero dello stato di lettura per l'utente chiamante. Per fare riferimento all'utente chiamante, imposta una delle seguenti opzioni:
L'alias me . Ad esempio, users/me/spaces/{space}/spaceReadState .
L'indirizzo email Workspace dell'utente. Ad esempio, users/user@example.com/spaces/{space}/spaceReadState .
Il relativo ID utente. Ad esempio, users/123456789/spaces/{space}/spaceReadState .
Formato: users/{user}/spaces/{space}/spaceReadState
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di SpaceReadState
.
Ambiti di autorizzazione
Richiede uno dei seguenti ambiti OAuth:
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
Per ulteriori informazioni, consulta la guida all'autorizzazione.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-04-29 UTC.
[null,null,["Ultimo aggiornamento 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"]]