Method: customEmojis.create
HTTP-запрос
POST https://chat.googleapis.com/v1/customEmojis
URL-адрес использует синтаксис транскодирования gRPC .
Тело запроса
Тело запроса содержит экземпляр CustomEmoji
.
Тело ответа
В случае успеха тело ответа содержит вновь созданный экземпляр CustomEmoji
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/chat.customemojis
Дополнительную информацию см. в руководстве по авторизации .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-21 UTC.
[null,null,["Последнее обновление: 2024-10-21 UTC."],[[["This Developer Preview feature enables the creation of custom emojis in Google Chat."],["It necessitates user authentication and uses the `chat.customemojis` OAuth scope."],["The feature functions through an HTTP POST request, utilizing gRPC Transcoding, and involves request and response bodies containing the `CustomEmoji` object."],["To explore its functionality, refer to the \"Try it!\" section within the documentation."]]],["This document outlines how to create a custom emoji using the Google Chat API. A `POST` request to `https://chat.googleapis.com/v1/customEmojis` is required, with the request body containing `CustomEmoji` data. Successful requests return a new `CustomEmoji` instance in the response body. This action is available through the Google Workspace Developer Preview Program and requires user authentication and the `https://www.googleapis.com/auth/chat.customemojis` OAuth scope. The API uses gRPC Transcoding.\n"]]