Method: subscriptions.create
HTTP リクエスト
POST https://workspaceevents.googleapis.com/v1/subscriptions
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
validateOnly |
boolean
(省略可)true に設定すると、リクエストの検証とプレビューが行われますが、サブスクリプションは作成されません。
|
リクエスト本文
リクエストの本文には Subscription
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Operation
のインスタンスが含まれます。
metadata
フィールドには空の配列が含まれています。response
フィールドには、Subscription
の新しいインスタンスが含まれます。
承認スコープ
次の OAuth スコープのいずれかが必要です。
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-05-03 UTC。
[null,null,["最終更新日 2024-05-03 UTC。"],[[["This method creates a Google Workspace subscription and provides instructions on how to use it through a provided link."],["The request can be previewed without creating a subscription by setting the `validateOnly` query parameter to `true`."],["A successful response includes an `Operation` object containing the newly created `Subscription` details."],["Authorization requires one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/chat.spaces` or others related to chat, messages, memberships, and meetings, with more information available in the Authorization guide."]]],["This describes how to create a Google Workspace subscription via a `POST` request to `https://workspaceevents.googleapis.com/v1/subscriptions`. The request includes an instance of `Subscription` in the body. The `validateOnly` query parameter can be used to preview the request. Successful responses contain an `Operation` instance, where `response` field has a new `Subscription`. This process requires one of several listed OAuth scopes for authorization.\n"]]