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)
MIME メッセージ パートの本文データ(base64url でエンコードされた文字列)。MIME コンテナタイプにメール本文がない場合や、本文データを別の添付ファイルとして送信する場合は、空にできます。本文データが別の添付ファイルに含まれている場合は、添付ファイル ID が存在します。 Base64 でエンコードされた文字列。
|
メソッド |
|
指定されたメッセージの添付ファイルを取得します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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"]]