REST Resource: media
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis page focuses on Google Chat file resources and how to interact with them.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the provided methods to download or upload files within Google Chat.\u003c/p\u003e\n"],["\u003cp\u003eA "resource" in this context refers to any file linked in a Chat message, such as an attachment.\u003c/p\u003e\n"]]],["The document outlines the representation of a file within Google Chat, specifically as an attachment to a message. It details two primary methods for interacting with these files: `download`, which retrieves the file's content, and `upload`, which allows users to add a new file as an attachment. These methods manage the transfer of media data to and from the Google Chat platform.\n"],null,["# REST Resource: media\n\n- [Resource](#RESOURCE_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource\n--------\n\nA file in Google Chat. For example, a file attached to a message.\n\n| Methods ------- ||\n|----------------------------------------------------------------------|------------------------|\n| ### [download](/workspace/chat/api/reference/rest/v1/media/download) | Downloads media. |\n| ### [upload](/workspace/chat/api/reference/rest/v1/media/upload) | Uploads an attachment. |"]]