chat.media.download
Download media attachments from Google Chat by resource name through the Chat API and return the requested resource as JSON.
Instructions
Downloads media. Download is supported on the URI /v1/media/{+name}?alt=media [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| resourceName | Yes | [URL path segment] Name of the media that is being downloaded. See ReadRequest.resource_name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceName | No |