Method: flightclass.get
Gibt die Flugklasse mit der angegebenen Klassen-ID zurück.
HTTP-Anfrage
GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
resourceId |
string
Die eindeutige Kennung einer Klasse. Diese ID muss für alle Klassen eines Ausstellers eindeutig sein. Dieser Wert sollte das Format issuer ID haben.identifier, wobei von Google ausgegeben und von dir ausgewählt wird. Die eindeutige Kennung darf nur alphanumerische Zeichen sowie „.“, „_“ oder „-“ enthalten.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von FlightClass
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/wallet_object.issuer
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-04 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-04 (UTC)."],[[["Retrieves a specific flight class using its unique identifier."],["The request requires an empty body and uses a `GET` method with the class ID as a path parameter."],["Successful responses return a `FlightClass` object containing details about the specified class."],["Authorization is required using the `wallet_object.issuer` OAuth scope."],["Class IDs must follow a specific format with issuer and user-defined components."]]],["The core content describes retrieving a flight class using its unique identifier. A `GET` request is sent to the provided URL, including the `resourceId` as a path parameter in the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`. The request body should be empty. A successful response returns a `FlightClass` instance. This operation requires OAuth authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope. The identifier format only include alphanumeric characters, '.', '_', or '-'.\n"]]