Method: subscriptions.create
คำขอ HTTP
POST https://workspaceevents.googleapis.com/v1/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
โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]