Method: spaces.messages.get
Permintaan HTTP
GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
name |
string
Wajib. Nama resource pesan. Format: spaces/{space}/messages/{message} Jika sudah menetapkan ID kustom untuk pesan, Anda dapat menggunakan nilai dari kolom clientAssignedMessageId untuk {message} . Untuk mengetahui detailnya, baca Menamai pesan.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan berisi instance Message
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-04-05 UTC.
[null,null,["Terakhir diperbarui pada 2024-04-05 UTC."],[[["Returns detailed information about a specific message within a space."],["Requires providing the message's resource name using the format `spaces/{space}/messages/{message}`."],["Supports both app and user authentication methods for accessing message details."],["The response includes a `Message` object containing the message data if the request is successful."],["Requires specific authorization scopes like `chat.bot`, `chat.messages`, or `chat.messages.readonly`."]]],["This outlines retrieving message details using a `GET` request to `https://chat.googleapis.com/v1/{name=spaces/*/messages/*}`. The message's resource name, found in the `name` path parameter (`spaces/{space}/messages/{message}`), is required. The request body must be empty. The successful response returns a `Message` instance. Authentication is achieved through either App or User authentication, requiring one of three specified OAuth scopes. This may include message from blocked member.\n"]]