Resource: Attachment
An attachment in Hangouts Chat.
JSON representation | |
---|---|
{ "name": string, "contentName": string, "contentType": string, "thumbnailUri": string, "downloadUri": string, "source": enum ( |
Fields | ||
---|---|---|
name |
Resource name of the attachment, in the form "spaces/*/messages/*/attachments/*". |
|
contentName |
The original file name for the content, not the full path. |
|
contentType |
The content type (MIME type) of the file. |
|
thumbnailUri |
Output only. The thumbnail URL which should be used to preview the attachment to a human user. Bots should not use this URL to download attachment content. |
|
downloadUri |
Output only. The download URL which should be used to allow a human user to download the attachment. Bots should not use this URL to download attachment content. |
|
source |
The source of the attachment. |
|
Union field
|
||
attachmentDataRef |
A reference to the attachment data. This is used with the media API to download the attachment data. |
|
driveDataRef |
A reference to the drive attachment. This is used with the Drive API. |
AttachmentDataRef
A reference to the data of an attachment.
JSON representation | |
---|---|
{ "resourceName": string } |
Fields | |
---|---|
resourceName |
The resource name of the attachment data. This is used with the media API to download the attachment data. |
DriveDataRef
A reference to the data of a drive attachment.
JSON representation | |
---|---|
{ "driveFileId": string } |
Fields | |
---|---|
driveFileId |
The id for the drive file, for use with the Drive API. |
Source
Enums | |
---|---|
SOURCE_UNSPECIFIED |
|
DRIVE_FILE |
|
UPLOADED_CONTENT |
Methods |
|
---|---|
|
Gets the metadata of a message attachment. |