Method: users.spaces.threads.getThreadReadState
בקשת HTTP
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/threads/*/threadReadState}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. שם המשאב של מצב הקריאה בשרשור לצורך אחזור. התכונה תומכת רק בקבלת מצב הקריאה של המשתמש המתקשר. כדי להפנות למשתמש שמתקשר, אפשר להגדיר אחת מהאפשרויות הבאות:
כתובת האימייל החלופית של me . לדוגמה: users/me/spaces/{space}/threads/{thread}/threadReadState .
כתובת האימייל שלו ב-Workspace. לדוגמה, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState .
מזהה המשתמש שלהם. לדוגמה, users/123456789/spaces/{space}/threads/{thread}/threadReadState .
פורמט: users/{user}/spaces/{space}/threads/{thread}/threadReadState
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של ThreadReadState
.
היקפי הרשאות
נדרש אחד מהיקפי ההרשאות הבאים של 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)."],[[["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"]]