Method: users.spaces.threads.getThreadReadState
Yêu cầu HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/threads/*/threadReadState}
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 luồng 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}/threads/{thread}/threadReadState .
Địa chỉ email Workspace của họ. Ví dụ: users/user@example.com/spaces/{space}/threads/{thread}/threadReadState .
Mã nhận dạng người dùng của họ. Ví dụ: users/123456789/spaces/{space}/threads/{thread}/threadReadState .
Định dạng: users/{user}/spaces/{space}/threads/{thread}/threadReadState
|
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 ThreadReadState
.
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."],[[["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"]]