Method: spaces.messages.reactions.create
HTTP-Anfrage
POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Die Nachricht, auf die die Reaktion erfolgt. Format: spaces/{space}/messages/{message}
|
Anfragetext
Der Anfragetext enthält eine Instanz von Reaction
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von Reaction
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
https://www.googleapis.com/auth/chat.import
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.create
Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-10-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-10-22 (UTC)."],[[["Creates a reaction and adds it to a Google Chat message using unicode emojis."],["Requires user authentication and authorization with specific scopes for accessing and modifying chat messages."],["The API endpoint uses a POST request to `https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions` with path and request body parameters to specify the message and reaction."],["A successful response returns the newly created reaction object."]]],["This document details the process of creating a reaction to a message using an HTTP POST request. The URL structure requires a parent path parameter specifying the message. The request body should contain a \"Reaction\" instance, and the successful response returns a new \"Reaction\" instance. User authentication and one of four OAuth scopes are required for authorization. Only Unicode emojis can be used as reactions. The process utilizes gRPC Transcoding.\n"]]