Method: subscriptions.create
HTTP-запрос
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
URL-адрес использует синтаксис транскодирования gRPC .
Параметры запроса
Параметры |
---|
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
Дополнительную информацию см. в руководстве по авторизации .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-26 UTC.
[null,null,["Последнее обновление: 2024-10-26 UTC."],[[["Creates a Google Workspace subscription using an HTTP POST request to a specified URL."],["Allows validation and preview of the request without creating a subscription using the `validateOnly` query parameter."],["Requires providing a Subscription object in the request body and returns an Operation object in the response, containing the new subscription details."],["Requires specific authorization scopes, such as chat and meeting related scopes, for access control and permissions."],["Is currently available as part of the Google Workspace Developer Preview Program."]]],["This document details creating a Google Workspace subscription via a `POST` request to `https://workspaceevents.googleapis.com/v1beta/subscriptions`. The request includes optional `validateOnly` query parameter for previewing. The request body requires a `Subscription` instance, and successful responses return an `Operation` instance, which contains an array and a new `Subscription` instance. Creating subscription needs to use one of the authorization scopes. This feature is in developer preview.\n"]]