Method: spaces.messages.reactions.list
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
רשימת התגובות להודעה. דוגמה לכך מופיעה במאמר הצגת רשימת התגובות להודעה.
נדרש אימות משתמש עם אחד מהיקפי ההרשאה הבאים:
https://www.googleapis.com/auth/chat.messages.reactions.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages
בקשת HTTP
GET https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. ההודעה שהמשתמשים הגיבו עליה. פורמט: spaces/{space}/messages/{message}
|
פרמטרים של שאילתה
פרמטרים |
pageSize |
integer
אופציונלי. המספר המקסימלי של התגובות שיתקבלו. השירות יכול להחזיר פחות תגובות מהערך הזה. אם לא מציינים ערך, ערך ברירת המחדל הוא 25. הערך המקסימלי הוא 200. ערכים מעל 200 משתנים ל-200.
|
pageToken |
string
אופציונלי. (אם ממשיכים משאילתה קודמת). אסימון דף שהתקבל מבקשת 'רשימת התגובות' קודמת. צריך לספק אותו כדי לאחזר את הדף הבא. כשמחלקים לדפים, ערך המסנן צריך להתאים לקריאה שסיפקה את אסימון הדף. העברת ערך שונה עלולה להוביל לתוצאות בלתי צפויות.
|
filter |
string
אופציונלי. מסנן שאילתות. אפשר לסנן את התגובות לפי אמוג'י (emoji.unicode או emoji.custom_emoji.uid ) ומשתמש (user.name ). כדי לסנן תגובות של כמה אמוג'י או משתמשים, משלבים שדות דומים באמצעות האופרטור OR , כמו emoji.unicode = "🙂" OR emoji.unicode =
"👍" ו-user.name = "users/AAAAAA" OR user.name = "users/BBBBBB" . כדי לסנן תגובות לפי אמוג'י ומשתמש, משתמשים באופרטור AND , למשל emoji.unicode = "🙂" AND user.name = "users/AAAAAA" . אם בשאילתה נעשה שימוש גם ב-AND וגם ב-OR , צריך לקבץ אותם בסוגריים. לדוגמה, השאילתות הבאות תקינות:
user.name = "users/{user}"
emoji.unicode = "🙂"
emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR emoji.unicode = "👍"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" AND user.name = "users/{user}"
(emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
AND user.name = "users/{user}"
השאילתות הבאות לא תקינות:
emoji.unicode = "🙂" AND emoji.unicode = "👍"
emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
AND user.name = "users/{user}"
שאילתות לא חוקיות נדחות עם השגיאה INVALID_ARGUMENT .
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
תגובה לבקשה להציג רשימה של תגובות.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
ייצוג ב-JSON |
{
"reactions": [
{
object (Reaction )
}
],
"nextPageToken": string
} |
שדות |
reactions[] |
object (Reaction )
רשימת התגובות בדף המבוקש (או בדף הראשון).
|
nextPageToken |
string
אסימון המשך לאחזור של דף התוצאות הבא. הוא ריק בדף התוצאות האחרון.
|
היקפי הרשאה
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
מידע נוסף זמין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eLists reactions for a specific message within a Google Chat space.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering reactions by emoji (unicode or custom) and user, using operators like \u003ccode\u003eAND\u003c/code\u003e and \u003ccode\u003eOR\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination to retrieve large result sets with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific authorization scopes related to message and reaction access.\u003c/p\u003e\n"],["\u003cp\u003eReturns a list of reactions with details like user and emoji, along with a token for fetching further pages.\u003c/p\u003e\n"]]],["This describes how to list reactions to a message using a `GET` request to `https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions`. The `parent` path parameter specifies the message. Optional query parameters include `pageSize` (max reactions returned), `pageToken` (for pagination), and `filter` (to filter by emoji or user). The request body must be empty. The response body contains a list of `reactions` and an optional `nextPageToken` for pagination. User authentication and specific authorization scopes are required.\n"],null,[]]