สร้างการสมัครใช้บริการ Google Workspace ดูวิธีใช้วิธีนี้ได้ที่สร้างการสมัครใช้บริการ Google Workspace
สำหรับการสมัครใช้บริการในทรัพยากรเป้าหมายของ Chat คุณสามารถสร้างการสมัครใช้บริการได้ดังนี้
แอป Chat โดยการระบุขอบเขตการให้สิทธิ์ที่ขึ้นต้นด้วย
chat.appและรับการอนุมัติจากผู้ดูแลระบบแบบครั้งเดียว (รุ่นตัวอย่างสำหรับนักพัฒนาแอป) ดูข้อมูลเพิ่มเติมได้ที่ให้สิทธิ์ในฐานะแอป Chat โดยได้รับการอนุมัติจากผู้ดูแลระบบผู้ใช้โดยการระบุขอบเขตการให้สิทธิ์ที่ไม่มี
appในชื่อ ดูข้อมูลเพิ่มเติมได้ที่ให้สิทธิ์ในฐานะผู้ใช้ Chat
คำขอ HTTP
POST https://workspaceevents.googleapis.com/v1beta/subscriptions
URL ใช้ไวยากรณ์การแปลงรหัส gRPC
พารามิเตอร์การค้นหา
| พารามิเตอร์ | |
|---|---|
validateOnly |
ไม่บังคับ หากตั้งค่าเป็น |
เนื้อความของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ Subscription
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Operation ที่สร้างขึ้นใหม่
- ฟิลด์
metadataมีอาร์เรย์ว่าง - ฟิลด์
responseมีอินสแตนซ์ใหม่ของSubscription
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/chat.spaceshttps://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.messages.reactions.readonlyhttps://www.googleapis.com/auth/chat.membershipshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/chat.app.membershipshttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/meetings.space.createdhttps://www.googleapis.com/auth/meetings.space.readonlyhttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.readonly
ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์