Method: spaces.spaceEvents.get

Google Chat के किसी स्पेस से इवेंट दिखाता है. इवेंट के पेलोड में, बदले गए रिसॉर्स का सबसे नया वर्शन शामिल होता है. उदाहरण के लिए, अगर आपने किसी नए मैसेज के बारे में इवेंट का अनुरोध किया है, लेकिन बाद में मैसेज अपडेट कर दिया गया है, तो सर्वर, इवेंट के पेलोड में अपडेट किया गया Message रिसॉर्स दिखाता है.

ध्यान दें: इस अनुरोध के लिए, स्पेस इवेंट के डेटा के स्पेस ऑब्जेक्ट में permissionSettings फ़ील्ड नहीं दिखाया जाता.

अनुरोध किए गए डेटा को पढ़ने के लिए, सही अनुमति के दायरे के साथ इन तरह के पुष्टि करने के तरीकों का इस्तेमाल किया जा सकता है:

  • ऐप्लिकेशन की पुष्टि करना. इसके लिए, ऐडमिन की मंज़ूरी के साथ अनुमति के इन दायरों में से किसी एक का इस्तेमाल किया जा सकता है:

    • https://www.googleapis.com/auth/chat.app.spaces
    • https://www.googleapis.com/auth/chat.app.spaces.readonly
    • https://www.googleapis.com/auth/chat.app.messages.readonly
    • https://www.googleapis.com/auth/chat.app.memberships
    • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • उपयोगकर्ता की पुष्टि करना. इसके लिए, अनुमति के इन दायरों में से किसी एक का इस्तेमाल किया जा सकता है:

    • https://www.googleapis.com/auth/chat.spaces.readonly
    • https://www.googleapis.com/auth/chat.spaces
    • https://www.googleapis.com/auth/chat.messages.readonly
    • https://www.googleapis.com/auth/chat.messages
    • https://www.googleapis.com/auth/chat.messages.reactions.readonly
    • https://www.googleapis.com/auth/chat.messages.reactions
    • https://www.googleapis.com/auth/chat.memberships.readonly
    • https://www.googleapis.com/auth/chat.memberships

किसी इवेंट को पाने के लिए, पुष्टि किया गया कॉलर, स्पेस का सदस्य होना चाहिए.

उदाहरण के लिए, Google Chat के किसी स्पेस से इवेंट के बारे में जानकारी पाना लेख पढ़ें.

एचटीटीपी अनुरोध

GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}

यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.

पाथ पैरामीटर

पैरामीटर
name

string

ज़रूरी है. स्पेस इवेंट का रिसॉर्स नाम.

फ़ॉर्मैट: spaces/{space}/spaceEvents/{spaceEvent}

अनुरोध का मुख्य हिस्सा

अनुरोध का मुख्य हिस्सा खाली होना चाहिए.

जवाब का मुख्य भाग

कामयाब रहने पर, जवाब के मुख्य हिस्से में SpaceEvent का एक इंस्टेंस शामिल किया जाता है.

अनुमति पाने के लिंक

इसके लिए, OAuth की इन अनुमतियों में से किसी एक की ज़रूरत होती है:

  • https://www.googleapis.com/auth/chat.app.memberships
  • https://www.googleapis.com/auth/chat.app.memberships.readonly
  • https://www.googleapis.com/auth/chat.app.messages.readonly
  • https://www.googleapis.com/auth/chat.app.spaces
  • https://www.googleapis.com/auth/chat.app.spaces.readonly
  • 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.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.