REST Resource: users.messages.attachments

资源:MessagePartBody

单个 MIME 邮件部分的正文。

JSON 表示法
{
  "attachmentId": string,
  "size": integer,
  "data": string
}
字段
attachmentId

string

如果存在,则包含可在单独的 messages.attachments.get 请求中检索的外部附件的 ID。如果不存在,则消息部分正文的全部内容都将包含在数据字段中。

size

integer

消息部分数据的字节数(尽管编码)。

data

string (bytes format)

MIME 消息部分的正文数据,采用 base64url 编码的字符串。对于没有邮件正文的 MIME 容器类型,或正文数据作为单独的附件发送时,可能为空。如果正文数据包含在单独的附件中,则存在附件 ID。

使用 base64 编码的字符串。

方法

get

获取指定的消息附件。