Method: giftcardobject.get
Belirtilen nesne kimliğine sahip hediye kartı nesnesini döndürür.
HTTP isteği
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
resourceId |
string
Bir nesnenin benzersiz tanımlayıcısıdır. Bu kimlik, bir kartı veren kuruluşa ait tüm nesneler arası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, GiftCardObject
öğ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 object using its unique object ID."],["The request requires an empty body and uses the `GET` HTTP method."],["Successful responses will contain a `GiftCardObject` in the response body."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The object ID must follow a specific format and should be unique across all issuer objects."]]],["The core content describes retrieving a gift card object using a GET request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `{resourceId}` is a unique identifier composed of an issuer ID and a chosen identifier. The request body must be empty. A successful request returns a `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The format of the identifier should include alphanumeric characters, '.', '_', or '-'.\n"]]