REST Resource: users.messages.attachments
منبع: MessagePartBody
نمایندگی JSON |
---|
{
"attachmentId": string,
"size": integer,
"data": string
} |
فیلدها |
---|
attachmentId | string در صورت وجود، حاوی شناسه یک پیوست خارجی است که می تواند در یک درخواست messages.attachments.get جداگانه بازیابی شود. وقتی وجود ندارد، کل محتوای متن قسمت پیام در فیلد داده قرار می گیرد. |
size | integer تعداد بایتها برای دادههای بخش پیام (بهرغم کدگذاری). |
data | string ( bytes format) دادههای بدنه یک بخش پیام MIME بهعنوان یک رشته کدگذاریشده با پایه 64url. ممکن است برای انواع محفظه MIME که متن پیام ندارند یا زمانی که دادههای بدنه بهعنوان پیوست جداگانه ارسال میشوند خالی باشد. اگر دادههای بدنه در پیوست جداگانه وجود داشته باشد، شناسه پیوست وجود دارد. رشته ای با کد base64. |
روش ها |
---|
| پیوست پیام مشخص شده را دریافت می کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-14 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-14 بهوقت ساعت هماهنگ جهانی."],[[["`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"]]