Method: users.spaces.getSpaceReadState
בקשת HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. שם המשאב של מצב הקריאה במרחב המשותף שצריך לאחזר. התכונה תומכת רק בקבלת מצב הקריאה של המשתמש המתקשר. כדי להפנות למשתמש שמתקשר, אפשר להגדיר אחת מהאפשרויות הבאות:
כתובת האימייל החלופית של me . לדוגמה: users/me/spaces/{space}/spaceReadState .
כתובת האימייל שלו ב-Workspace. לדוגמה, users/user@example.com/spaces/{space}/spaceReadState .
מזהה המשתמש שלהם. לדוגמה, users/123456789/spaces/{space}/spaceReadState .
פורמט: users/{user}/spaces/{space}/spaceReadState
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של SpaceReadState
.
היקפי הרשאות
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
למידע נוסף, עיינו במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-04-29 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]