REST Resource: users.messages.attachments
संसाधन: MessagePartBody
MIME मैसेज के एक हिस्से का मुख्य हिस्सा.
JSON के काेड में दिखाना |
{
"attachmentId": string,
"size": integer,
"data": string
} |
फ़ील्ड |
attachmentId |
string
मौजूद होने पर, इसमें बाहरी अटैचमेंट का आईडी होता है, जिसे messages.attachments.get के अलग अनुरोध में वापस पाया जा सकता है. इसके मौजूद न होने पर, मैसेज के मुख्य हिस्से का पूरा कॉन्टेंट, डेटा फ़ील्ड में शामिल हो जाता है.
|
size |
integer
मैसेज वाले हिस्से के डेटा के लिए बाइट की संख्या (कोड में बदलने के बावजूद).
|
data |
string (bytes format)
MIME मैसेज के मुख्य हिस्से का डेटा, base64url की कोड में बदली गई स्ट्रिंग के रूप में होता है. यह ऐसे MIME कंटेनर टाइप के लिए खाली हो सकता है जिनमें मैसेज का मुख्य हिस्सा नहीं होता या जब मुख्य हिस्से का डेटा अलग अटैचमेंट के तौर पर भेजा जाता है. अगर मुख्य डेटा किसी अलग अटैचमेंट में है, तो अटैचमेंट आईडी मौजूद होता है. base64 कोड में बदली गई स्ट्रिंग.
|
तरीके |
|
तय किए गए मैसेज अटैचमेंट को फ़ेच करता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया."],[[["`MessagePartBody` resource represents the body of a single MIME message part and can contain an attachment ID, size, and data."],["If an `attachmentId` is present, the attachment must be retrieved separately via `messages.attachments.get`; otherwise, the data field contains the entire body."],["`data` field stores the base64url-encoded body of the message part, potentially empty for container types or when sent as a separate attachment."],["Developers can use the `get` method to retrieve a specific message attachment using its ID."]]],["The `MessagePartBody` resource represents a MIME message part's body. It can be represented in JSON with fields for `attachmentId` (ID of an external attachment), `size` (data size in bytes), and `data` (base64url encoded string of the body). If `attachmentId` is present, content is external; otherwise, `data` contains the body. A `get` method is available to retrieve external message attachments via `messages.attachments.get`.\n"]]