Method: flightclass.get
Restituisce la classe Flight con l'ID classe specificato.
Richiesta HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
resourceId |
string
L'identificatore univoco di una classe. Questo ID deve essere univoco per tutti i corsi di un emittente. Questo valore deve essere nel formato issuer ID.identifier, dove la prima è rilasciata da Google e la seconda è scelta da te. L'identificatore univoco deve includere solo caratteri alfanumerici, ".", "_" o "-".
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di FlightClass
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-03-13 UTC.
[null,null,["Ultimo aggiornamento 2025-03-13 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"]]