Method: users.spaces.getSpaceReadState
Permintaan HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama resource status baca ruang 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}/spaceReadState .
Alamat email Workspace-nya. Misalnya, users/user@example.com/spaces/{space}/spaceReadState .
ID pengguna mereka. Misalnya, users/123456789/spaces/{space}/spaceReadState .
Format: pengguna/{pengguna}/spasi/{space}/spaceReadState
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan berisi instance SpaceReadState
.
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."],[[["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"]]