REST Resource: users.messages.attachments
资源:MessagePartBody
JSON 表示法 |
{
"attachmentId": string,
"size": integer,
"data": string
} |
字段 |
attachmentId |
string
如果存在,则包含外部附件的 ID,可在单独的 messages.attachments.get 请求中检索。如果此字段不存在,则邮件部分正文的全部内容会包含在数据字段中。
|
size |
integer
消息部分数据的字节数(尽管正在编码)。
|
data |
string (bytes format)
MIME 邮件部分的正文数据,以 base64url 编码字符串形式。对于没有邮件正文的 MIME 容器类型或正文数据作为单独的附件发送时,可以为空。如果正文数据包含在单独的附件中,则会显示附件 ID。 使用 base64 编码的字符串。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-05。
[null,null,["最后更新时间 (UTC):2024-09-05。"],[[["`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"]]