Method: spaces.messages.reactions.create
HTTP-запрос
POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
parent | string Необходимый. Сообщение, в котором создается реакция. Формат: spaces/{space}/messages/{message} |
Тело запроса
Тело запроса содержит экземпляр Reaction
.
Тело ответа
В случае успеха тело ответа содержит вновь созданный экземпляр Reaction
.
Области авторизации
Требуется одна из следующих областей OAuth:
-
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
Дополнительную информацию см. в руководстве по авторизации .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-11 UTC.
[null,null,["Последнее обновление: 2024-11-11 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"]]