Method: genericclass.get
Belirtilen sınıf kimliğine sahip genel sınıfı döndürür.
HTTP isteği
GET https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Bir sınıfın benzersiz tanımlayıcısıdır. Bu kimlik, kartı veren kuruluşun tüm sınıflarında benzersiz olmalıdır. Bu değerin issuerID.identifier biçimine uygun olması gerekir. Burada issuerID Google tarafından verilir ve identifier sizin tarafınızdan seçilir. Benzersiz tanımlayıcı yalnızca alfanümerik karakterler, . , _ veya - içerebilir.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, GenericClass
öğ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: 2025-03-13 UTC.
[null,null,["Son güncelleme tarihi: 2025-03-13 UTC."],[[["Retrieves a generic class with a specific class ID using a GET request."],["The class ID must be unique across all classes from an issuer and follow a specific format."],["The request body should be empty, and the response includes the GenericClass object if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core content describes retrieving a generic class using its ID. A `GET` request is made to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}`, utilizing gRPC Transcoding. The `resourceId` path parameter, formatted as `issuerID.identifier`, uniquely identifies the class. The request body must be empty. A successful request returns a `GenericClass` instance in the response body. Access requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]