Method: flightclass.get
Belirtilen sınıf kimliğine sahip uçuş sınıfını döndürür.
HTTP isteği
GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Sınıfın benzersiz tanımlayıcısı. Bu kimlik, bir verenin tüm sınıflarında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier. Bunlardan ilki Google tarafından verilir, ikincisi ise sizin tarafınızdan seçilir. Benzersiz tanımlayıcınız yalnızca alfanümerik karakterler, ".", "_" veya "-" içermelidir.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, FlightClass
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/wallet_object.issuer
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-04 UTC.
[null,null,["Son güncelleme tarihi: 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"]]