Method: spaces.messages.reactions.create
HTTP isteği
POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Tepkinin oluşturulduğu mesaj. Biçim: spaces/{space}/messages/{message}
|
İstek içeriği
İstek metni, Reaction
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulmuş bir Reaction
örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
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
Daha fazla bilgi için Yetkilendirme kılavuzunu inceleyin.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-22 UTC.
[null,null,["Son güncelleme tarihi: 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"]]