https://www.googleapis.com/auth/chat.bot: अनुमति के इस स्कोप का इस्तेमाल करने पर, यह तरीका Chat ऐप्लिकेशन के ऐक्सेस किए गए मैसेज के बारे में जानकारी देता है. जैसे, डायरेक्ट मैसेज और Chat ऐप्लिकेशन को चालू करने वाली स्लैश कमांड.
https://www.googleapis.com/auth/chat.app.messages.readonly के लिए एडमिन की मंज़ूरी ज़रूरी है. यह सुविधा डेवलपर के लिए झलक में उपलब्ध है. पुष्टि करने के इस स्कोप का इस्तेमाल करने पर, यह तरीका किसी स्पेस में मौजूद सार्वजनिक मैसेज के बारे में जानकारी दिखाता है.
उपयोगकर्ता की पुष्टि के लिए, अनुमति के इन स्कोप में से किसी एक का इस्तेमाल करें:
अगर आपने अपने मैसेज के लिए कस्टम आईडी सेट किया है, तो {message} के लिए clientAssignedMessageId फ़ील्ड से वैल्यू का इस्तेमाल किया जा सकता है. ज़्यादा जानकारी के लिए, किसी मैसेज को नाम देना लेख पढ़ें.
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में Message का एक इंस्टेंस शामिल किया जाता है.
अनुमति के स्कोप
इसके लिए, इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-19 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eReturns detailed information about a specific message within a space.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the message's resource name using the format \u003ccode\u003espaces/{space}/messages/{message}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSupports both app and user authentication methods for accessing message details.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a \u003ccode\u003eMessage\u003c/code\u003e object containing the message data if the request is successful.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific authorization scopes like \u003ccode\u003echat.bot\u003c/code\u003e, \u003ccode\u003echat.messages\u003c/code\u003e, or \u003ccode\u003echat.messages.readonly\u003c/code\u003e.\u003c/p\u003e\n"]]],["This outlines retrieving message details using a `GET` request to `https://chat.googleapis.com/v1/{name=spaces/*/messages/*}`. The message's resource name, found in the `name` path parameter (`spaces/{space}/messages/{message}`), is required. The request body must be empty. The successful response returns a `Message` instance. Authentication is achieved through either App or User authentication, requiring one of three specified OAuth scopes. This may include message from blocked member.\n"],null,[]]