Media
class Media extends Resource (View source)
The "media" collection of methods.
Typical usage is:
$chatService = new Google\Service\HangoutsChat(...);
$media = $chatService->media;
Methods
Downloads media. Download is supported on the URI
/v1/media/{+name}?alt=media
. (media.download)
Uploads an attachment. For an example, see Upload media as a file attachment. Requires user authentication. You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see File types blocked by Google Chat. (media.upload)
Details
Media
download(string $resourceName, array $optParams = [])
Downloads media. Download is supported on the URI
/v1/media/{+name}?alt=media
. (media.download)
UploadAttachmentResponse
upload(string $parent, UploadAttachmentRequest $postBody, array $optParams = [])
Uploads an attachment. For an example, see Upload media as a file attachment. Requires user authentication. You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see File types blocked by Google Chat. (media.upload)