Method: spaces.messages.get
Żądanie HTTP
GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
To pole jest wymagane. Nazwa zasobu wiadomości. Format: spaces/{space}/messages/{message} Jeśli masz ustawiony identyfikator niestandardowy dla wiadomości, możesz użyć wartości z pola clientAssignedMessageId dla {message} . Szczegółowe informacje znajdziesz w sekcji Nadawanie nazwy wiadomości.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Message
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
Więcej informacji znajdziesz w przewodniku po autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-04-05 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]