แสดงผลเหตุการณ์จากพื้นที่ใน Google Chat เพย์โหลดของเหตุการณ์มีทรัพยากรเวอร์ชันล่าสุดที่มีการเปลี่ยนแปลง เช่น หากคุณขอเหตุการณ์เกี่ยวกับข้อความใหม่ แต่ต่อมามีการอัปเดตข้อความ เซิร์ฟเวอร์จะแสดงผลทรัพยากร Message ที่อัปเดตแล้วในเพย์โหลดของเหตุการณ์
หมายเหตุ: ระบบจะไม่แสดงฟิลด์ permissionSettings ในออบเจ็กต์ Space ของข้อมูลเหตุการณ์ในพื้นที่สำหรับคำขอนี้
รองรับการตรวจสอบสิทธิ์ประเภทต่อไปนี้ด้วยขอบเขตการให้สิทธิ์ที่เหมาะสมสำหรับการอ่านข้อมูลที่ขอ
การตรวจสอบสิทธิ์แอปที่มีการอนุมัติของผู้ดูแลระบบในรุ่นตัวอย่างสำหรับนักพัฒนาแอป โดยใช้ขอบเขตการให้สิทธิ์อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.memberships
การตรวจสอบสิทธิ์ผู้ใช้ที่มีขอบเขตการให้สิทธิ์อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.spaceshttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.messages.reactions.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/chat.memberships
หากต้องการรับเหตุการณ์ ผู้โทรที่ได้รับการตรวจสอบสิทธิ์ต้องเป็นสมาชิกของพื้นที่ทำงาน
ดูตัวอย่างได้ที่ดูรายละเอียดเกี่ยวกับกิจกรรมจากพื้นที่ทำงานใน Google Chat
คำขอ HTTP
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
URL ใช้ไวยากรณ์การแปลงรหัส gRPC
พารามิเตอร์เส้นทาง
| พารามิเตอร์ | |
|---|---|
name |
ต้องระบุ ชื่อทรัพยากรของเหตุการณ์ในพื้นที่ทำงาน รูปแบบ: |
เนื้อความของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ SpaceEvent
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://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/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.membershipshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.messages.reactions.readonly
ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์