Method: transitobject.update
Aktualizuje obiekt biletu, do którego odwołuje się podany identyfikator obiektu.
Żądanie HTTP
PUT 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 zawiera wystąpienie elementu TransitObject
.
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."],[[["Updates an existing transit object using its unique identifier."],["The request must include the object's data in the body as a TransitObject."],["A successful update returns the updated TransitObject."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Object IDs should follow a specific format: \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e, with the issuer ID provided by Google."]]],["This describes how to update a transit object using a PUT request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/transitObject/{resourceId}`. The `resourceId` parameter is a unique string composed of an issuer ID and an identifier. The request body must contain a `TransitObject` instance, and a successful response will also return a `TransitObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]