Method: spaces.messages.reactions.create

Membuat reaksi dan menambahkannya ke pesan. Sebagai contoh, lihat Menambahkan reaksi ke pesan.

Memerlukan autentikasi pengguna dengan salah satu cakupan otorisasi berikut:

  • https://www.googleapis.com/auth/chat.messages.reactions.create
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.import (khusus ruang mode impor)

Permintaan HTTP

POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions

URL menggunakan sintaksis gRPC Transcoding.

Parameter jalur

Parameter
parent

string

Wajib. Pesan tempat reaksi dibuat.

Format: spaces/{space}/messages/{message}

Isi permintaan

Isi permintaan memuat instance Reaction.

Isi respons

Jika berhasil, isi respons memuat instance Reaction yang baru dibuat.

Cakupan otorisasi

Memerlukan salah satu cakupan OAuth berikut:

  • 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

Untuk mengetahui informasi selengkapnya, lihat Panduan otorisasi.