REST Resource: media
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\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. |"]]