Method: transitobject.get
Zwraca obiekt biletu na przejazd z podanym identyfikatorem obiektu.
Żądanie HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/transitObject/{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 TransitObject
.
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."],[[["Retrieves a specific transit object using its unique identifier."],["The request requires an empty body and uses a GET HTTP method with the object's resource ID in the URL path."],["A successful response provides the details of the requested transit object."],["Authorization is necessary using the `wallet_object.issuer` scope."]]],["This document outlines the process for retrieving a transit object using its unique ID. A `GET` request is sent to the specified URL, including the `resourceId` as a path parameter. The `resourceId` is a string following the format \"issuer ID.identifier\". The request body must be empty. A successful response returns a `TransitObject` instance. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]