Method: subscriptions.create
Permintaan HTTP
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
validateOnly |
boolean
Opsional. Jika ditetapkan ke true , akan memvalidasi dan melihat pratinjau permintaan, tetapi tidak akan membuat langganan.
|
Isi permintaan
Isi permintaan memuat instance Subscription
.
Isi respons
Jika berhasil, isi respons memuat instance Operation
yang baru dibuat.
- Kolom
metadata
berisi array kosong. - Kolom
response
berisi instance baru Subscription
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
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
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-05-03 UTC.
[null,null,["Terakhir diperbarui pada 2024-05-03 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"]]