Method: loyaltyobject.update
Belirtilen nesne kimliğinin referans verdiği bağlılık nesnesini günceller.
HTTP isteği
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{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şaretlerini içermelidir.
|
İstek içeriği
İstek metni, LoyaltyObject
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, LoyaltyObject
öğ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-07 UTC.
[null,null,["Son güncelleme tarihi: 2024-11-07 UTC."],[[["This document explains how to update a loyalty object using the Google Wallet API."],["You'll need to use a `PUT` request to the specified URL, including the object's unique identifier."],["The request body should contain the updated loyalty object data in JSON format according to the `LoyaltyObject` schema."],["A successful response will return the updated `LoyaltyObject`."],["You must have the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope to authorize this request."]]],["This describes how to update a loyalty object using a PUT request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`, where `resourceId` uniquely identifies the object. The request body must contain a `LoyaltyObject` instance. The response body will also be a `LoyaltyObject` upon success. This action requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization. The `resourceId` should follow the format \u003cvar\u003eissuer ID\u003c/var\u003e.\u003cvar\u003eidentifier\u003c/var\u003e.\n"]]