Method: spaces.messages.reactions.create
Yêu cầu HTTP
POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Tin nhắn nơi tạo phản ứng. Định dạng spaces/{space}/messages/{message}
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của Reaction
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể mới tạo của Reaction
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
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
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-10-22 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]