Method: flightclass.addmessage
Dodaje komunikat do klasy lotu, do której odwołuje się podany identyfikator klasy.
Żądanie HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}/addMessage
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator klasy. Ten identyfikator musi być unikalny wśród wszystkich klas 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 (FlightClass )
Zaktualizowany zasób FlightClass.
|
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 class using the provided class ID."],["The request body should contain an `AddMessageRequest` object and uses the `POST` method."],["If successful, the response returns the updated `FlightClass` object."],["Requires `wallet_object.issuer` authorization scope for access."],["Utilizes gRPC Transcoding for the HTTP request URL structure."]]],["This document outlines the process for adding a message to a flight class using a POST request to the `https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}/addMessage` endpoint. The `resourceId` path parameter, a unique identifier in the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`, specifies the target class. The request body utilizes the `AddMessageRequest`. Upon success, the response includes the updated `FlightClass` resource, necessitating `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope authorization.\n"]]