Method: giftcardclass.get
Belirtilen sınıf kimliğine sahip hediye kartı sınıfını döndürür.
HTTP isteği
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{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 kartı veren kuruluşa ait tüm sınıflarda 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şaretlerini içermelidir.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, GiftCardClass
öğ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 gift card class using its unique identifier."],["The request requires an empty body and uses the `GET` HTTP method."],["The response provides the details of the gift card class if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["Class ID should adhere to a specific format, including the issuer ID and a unique identifier chosen by the user."]]],["The core content describes retrieving a gift card class using a GET request. The request URL is structured with a `resourceId` path parameter, which uniquely identifies the class and follows a specific format. The request body must be empty. A successful response returns an instance of `GiftCardClass`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `gRPC Transcoding` syntax is used for the URL.\n"]]