Method: users.spaces.getSpaceReadState
Yêu cầu HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
name |
string
Bắt buộc. Tên tài nguyên của trạng thái đọc không gian cần truy xuất. Chỉ hỗ trợ nhận trạng thái đọc của người dùng đang gọi. Để tham chiếu đến người dùng gọi, hãy đặt một trong các tuỳ chọn sau:
Bí danh me . Ví dụ: users/me/spaces/{space}/spaceReadState .
Địa chỉ email Workspace của họ. Ví dụ: users/user@example.com/spaces/{space}/spaceReadState .
Mã nhận dạng người dùng của họ. Ví dụ: users/123456789/spaces/{space}/spaceReadState .
Định dạng: users/{user}/spaces/{space}/spaceReadState
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của SpaceReadState
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau đây:
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
Để biết thêm thông tin, hãy xem bài viết Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-04-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]