Method: users.spaces.getSpaceReadState
HTTP isteği
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Alınacak alan okuma durumunun kaynak adı. Yalnızca arayan kullanıcının okundu durumunu almayı destekler. Arayan kullanıcıya başvurmak için aşağıdakilerden birini ayarlayın:
me takma adı. Örneğin, users/me/spaces/{space}/spaceReadState .
Workspace e-posta adresi. Örneğin, users/user@example.com/spaces/{space}/spaceReadState .
Kullanıcının kullanıcı kimliği. Örneğin, users/123456789/spaces/{space}/spaceReadState .
Biçim: kullanıcılar/{kullanıcı}/alanlar/{alan}/spaceReadState
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, SpaceReadState
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
Daha fazla bilgi için Yetkilendirme kılavuzu'na bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-04-29 UTC.
[null,null,["Son güncelleme tarihi: 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"]]