Method: subscriptions.create

สร้างการสมัครใช้บริการ Google Workspace ดูวิธีใช้วิธีนี้ได้ที่สร้างการสมัครใช้บริการ Google Workspace

คำขอ 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

ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์