REST Resource: users.messages.attachments
리소스: MessagePartBody
JSON 표현 |
{
"attachmentId": string,
"size": integer,
"data": string
} |
필드 |
attachmentId |
string
이 태그가 있는 경우 별도의 messages.attachments.get 요청으로 검색할 수 있는 외부 첨부파일의 ID를 포함합니다. 이 필드가 없으면 메시지 부분 본문의 전체 콘텐츠가 데이터 필드에 포함됩니다.
|
size |
integer
메시지 부분 데이터의 바이트 수입니다 (인코딩과 관계없이).
|
data |
string (bytes format)
base64url로 인코딩된 문자열로 표시되는 MIME 메시지 부분의 본문 데이터입니다. 메일 본문이 없는 MIME 컨테이너 유형의 경우 또는 본문 데이터가 별도의 첨부파일로 전송되는 경우 비어 있을 수 있습니다. 본문 데이터가 별도의 첨부파일에 포함된 경우 첨부파일 ID가 존재합니다. base64 인코딩 문자열입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]