Method: subscriptions.create
Yêu cầu HTTP
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số truy vấn
Tham số |
validateOnly |
boolean
Không bắt buộc. Nếu bạn đặt chính sách này thành true , thì hệ thống sẽ xác thực và xem trước yêu cầu nhưng không tạo gói thuê bao.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của Subscription
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể mới được tạo của Operation
.
- Trường
metadata
chứa một mảng trống. - Trường
response
chứa một thực thể mới của Subscription
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
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
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-05-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]