Method: spaces.messages.reactions.list
HTTP リクエスト
GET https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。ユーザーがリアクションしたメッセージ。 形式: spaces/{space}/messages/{message}
|
クエリ パラメータ
パラメータ |
pageSize |
integer
省略可。返されるリアクションの最大数。サービスが返すリアクションはこれよりも少ないことがあります。指定しない場合、デフォルト値は 25 です。最大値は 200 です。200 を超える値は 200 に変更されます。
|
pageToken |
string
省略可。(前のクエリから再開する場合)。 前回の list reactions 呼び出しで受け取ったページトークン。後続のページを取得するにはこれを指定します。 ページネーションを行う場合、フィルタ値はページトークンを受け取った呼び出しと一致している必要があります。別の値を渡すと、予期しない結果になる可能性があります。
|
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
詳しくは、認可ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-27 UTC。
[null,null,["最終更新日 2025-02-27 UTC。"],[[["Lists reactions for a specific message within a Google Chat space."],["Allows filtering reactions by emoji (unicode or custom) and user, using operators like `AND` and `OR`."],["Supports pagination to retrieve large result sets with `pageSize` and `pageToken` parameters."],["Requires specific authorization scopes related to message and reaction access."],["Returns a list of reactions with details like user and emoji, along with a token for fetching further pages."]]],["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"]]