Method: users.spaces.threads.getThreadReadState
HTTP isteği
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/threads/*/threadReadState}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Alınacak ileti dizisi okunma 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}/threads/{thread}/threadReadState .
Workspace e-posta adresi. Örneğin, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState .
Kullanıcının kullanıcı kimliği. Örneğin, users/123456789/spaces/{space}/threads/{thread}/threadReadState .
Biçim: kullanıcılar/{kullanıcı}/alanlar/{boşluk}/threads/{thread}/threadReadState
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, ThreadReadState
öğ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."],[[["Retrieves a user's read state within a specific thread, indicating read and unread messages."],["Requires user authentication and uses a specific HTTP GET request format with path parameters."],["The request body should be empty, while a successful response includes a `ThreadReadState` object."],["Authorisation is necessary, using specific OAuth scopes related to read state permissions."]]],["This describes retrieving a user's read state within a specific thread. To do so, send a `GET` HTTP request to a URL constructed with user, space, and thread identifiers, using either the `me` alias, their email, or ID. The request body must be empty. Successful requests return a `ThreadReadState` object, and requests require authorization via OAuth scopes, such as `chat.users.readstate`. The user must be authenticated to access this resource.\n"]]