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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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"]]