Method: flightobject.get
Zwraca obiekt lotu o podanym identyfikatorze obiektu.
Żądanie HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}
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 musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu 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: 2025-03-13 UTC.
[null,null,["Ostatnia aktualizacja: 2025-03-13 UTC."],[[["Retrieves a flight object using its unique object ID."],["The request requires an empty body and uses the `GET` method with a specific URL structure."],["Successful responses return a FlightObject instance containing the requested information."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."],["The object ID should follow a specific format and include the issuer ID and a unique identifier."]]],["The core content describes how to retrieve a flight object using its unique ID. A `GET` request is sent to a specific URL, including the `resourceId` as a path parameter. This `resourceId` follows the format of `issuer ID.identifier`. The request body must be empty. A successful response returns a `FlightObject`. The operation requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The provided information uses gRPC Transcoding syntax.\n"]]