Method: spaces.messages.get
एचटीटीपी अनुरोध
GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. मैसेज के संसाधन का नाम. फ़ॉर्मैट: spaces/{space}/messages/{message} अगर आपने अपने मैसेज के लिए कस्टम आईडी सेट किया है, तो {message} के लिए clientAssignedMessageId फ़ील्ड की वैल्यू का इस्तेमाल किया जा सकता है. ज़्यादा जानकारी के लिए, मैसेज को नाम देना देखें.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में Message
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
इनमें से किसी एक OAuth दायरों की ज़रूरत होती है:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-04-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-04-05 (UTC) को अपडेट किया गया."],[[["Returns detailed information about a specific message within a space."],["Requires providing the message's resource name using the format `spaces/{space}/messages/{message}`."],["Supports both app and user authentication methods for accessing message details."],["The response includes a `Message` object containing the message data if the request is successful."],["Requires specific authorization scopes like `chat.bot`, `chat.messages`, or `chat.messages.readonly`."]]],["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"]]