Get
|
|||||
|
|
Gets the specified message attachment
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- Read, compose, send, and permanently delete all your email from Gmail
- View and modify but not delete your email
- View your email messages and settings
Input
This building block consumes 3 input parameters
Name | Format | Description |
---|---|---|
userId Required |
STRING |
The user's email address. The special value me can be used to indicate the authenticated user |
messageId Required |
STRING |
The ID of the message containing the attachment |
id Required |
STRING |
The ID of the attachment |
= Parameter name
= Format
userId STRING Required The user's email address. The special value me can be used to indicate the authenticated user |
messageId STRING Required The ID of the message containing the attachment |
id STRING Required The ID of the attachment |
Output
This building block provides 3 output parameters
Name | Format | Description |
---|---|---|
attachmentId |
STRING |
When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field |
data |
BINARY |
The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment |
size |
INTEGER |
Number of bytes for the message part data (encoding notwithstanding) |
= Parameter name
= Format
attachmentId STRING When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field |
data BINARY The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment |
size INTEGER Number of bytes for the message part data (encoding notwithstanding) |