تعرض هذه الطريقة حدثًا من مساحة Google Chat. يحتوي حمولة الحدث على أحدث إصدار من المورد الذي تم تغييره. على سبيل المثال، إذا طلبت حدثًا حول رسالة جديدة ولكن تم تعديل الرسالة لاحقًا، سيعرض الخادم مورد Message المعدَّل في حمولة الحدث.
ملاحظة: لا يتم عرض الحقل permissionSettings في عنصر "المساحة" ضمن بيانات الأحداث الخاصة بحدث "المساحة" لهذا الطلب.
يتيح الأنواع التالية من المصادقة مع نطاق تفويض مناسب لقراءة البيانات المطلوبة:
مصادقة التطبيق من خلال موافقة المشرف باستخدام أحد نطاقات التفويض التالية:
https://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.app.spaces.readonlyhttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.membershipshttps://www.googleapis.com/auth/chat.app.memberships.readonly
مصادقة المستخدم باستخدام أحد نطاقات الأذونات التالية:
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
للحصول على حدث، يجب أن يكون المتصل الذي تمّت مصادقته عضوًا في المساحة.
للاطّلاع على مثال، راجِع الحصول على تفاصيل حول حدث من مساحة Chat في 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.memberships.readonlyhttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.app.spaces.readonlyhttps://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
لمزيد من المعلومات، يمكنك الاطّلاع على دليل التفويض.