Method: flightobject.addmessage
Dodaje komunikat do obiektu lotu, do którego odwołuje się podany identyfikator obiektu.
Żądanie HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}/addMessage
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator obiektu. Ten identyfikator musi być unikalny wśród wszystkich obiektów wydawcy. Ta wartość powinna mieć format issuer ID.identifier, gdzie pierwszy identyfikator jest wystawiany przez Google, a drugi jest wybierany przez Ciebie. Unikalny identyfikator powinien zawierać tylko znaki alfanumeryczne oraz znaki „.”, „_” lub „-”.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu AddMessageRequest
.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Pola |
resource |
object (FlightObject )
Zaktualizowany zasób FlightObject.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
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-11-07 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-07 UTC."],[[["Adds a message to an existing flight object using the object's unique identifier."],["Requires a POST request to the specified endpoint with the AddMessageRequest in the request body."],["Upon successful execution, the API responds with the updated FlightObject resource."],["The operation necessitates the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Utilizes path parameters to identify the specific flight object to which the message will be added."]]],["This document details adding a message to a flight object using a `POST` request to a specified URL. The URL includes a `resourceId` path parameter, a unique identifier for the flight object. The request body contains an `AddMessageRequest` instance. A successful response returns an updated `FlightObject`, represented in JSON, with a \"resource\" field. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]