フィードバックを送信
Method: subscriptions.list
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP リクエスト
GET https://workspaceevents.googleapis.com/v1beta/subscriptions
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ
pageSize
integer
省略可。返されるサブスクリプションの最大数。サービスはこの値よりも少ない値を返すことがあります。
指定しないか 0
に設定した場合、最大 50 個のサブスクリプションが返されます。
最大値は 100 です。100 を超える値を指定した場合、100 件のサブスクリプションのみが返されます。
pageToken
string
省略可。前回のサブスクリプション list 呼び出しから受け取ったページトークン。このパラメータを指定すると、後続のページを取得できます。
ページ分割を行う場合、フィルタ値は、ページトークンを提供した呼び出しと一致する必要があります。別の値を渡すと、予期しない結果が生じる可能性があります。
filter
string
必須。クエリフィルタ。
サブスクリプションは、イベントタイプ(event_types
)とターゲット リソース(target_resource
)でフィルタできます。
クエリでは少なくとも 1 つのイベントタイプを指定する必要があります。複数のイベントタイプでフィルタするには、OR
演算子を使用します。
イベントタイプとターゲット リソースの両方でフィルタするには、AND
演算子を使用して完全なリソース名を指定します(例: //chat.googleapis.com/spaces/{space}
)。
たとえば、次のクエリは有効です。
event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created"
event_types:"google.workspace.chat.message.v1.created" AND
target_resource="//chat.googleapis.com/spaces/{space}"
( event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created" ) AND
target_resource="//chat.googleapis.com/spaces/{space}"
サーバーは無効なクエリを INVALID_ARGUMENT
エラーで拒否します。
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
SubscriptionsService.ListSubscriptions
に対するレスポンス メッセージ。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現
{
"subscriptions" : [
{
object (Subscription
)
}
] ,
"nextPageToken" : string
}
フィールド
subscriptions[]
object (Subscription
)
サブスクリプションのリスト。
nextPageToken
string
次のページを取得するために pageToken
として送信できるトークン。このフィールドを省略すると、後続のページはなくなります。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
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
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
詳細については、承認ガイド をご覧ください。
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-10 UTC。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]
ご意見をお聞かせください
{"lastModified": "\u6700\u7d42\u66f4\u65b0\u65e5 2024-09-10 UTC\u3002"}
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-09-10 UTC。"]]