Method: users.spaces.threads.getThreadReadState
Permintaan HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/threads/*/threadReadState}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama resource dari status pembacaan thread yang akan diambil. Hanya mendukung mendapatkan status baca untuk pengguna yang menelepon. Untuk merujuk ke pengguna yang menelepon, tetapkan salah satu opsi berikut:
Alias me . Misalnya, users/me/spaces/{space}/threads/{thread}/threadReadState .
Alamat email Workspace-nya. Misalnya, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState .
ID pengguna mereka. Misalnya, users/123456789/spaces/{space}/threads/{thread}/threadReadState .
Format: pengguna/{user}/spasi/{space}/thread/{thread}/threadReadState
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan berisi instance ThreadReadState
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-04-29 UTC.
[null,null,["Terakhir diperbarui pada 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"]]