Method: giftcardclass.addmessage
Belirtilen sınıf kimliği tarafından referans verilen hediye kartı sınıfına bir mesaj ekler.
HTTP isteği
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage
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, bir verenin tüm sınıflarında benzersiz olmalıdır. Bu değer issuer ID biçiminde olmalıdır.identifier burada 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, AddMessageRequest
öğesinin bir örneğini içerir.
Yanıt metni
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Alanlar |
resource |
object (GiftCardClass )
Güncellenen GiftCardClass kaynağı.
|
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 details the process for adding a message to a specific gift card class using the Google Wallet API."],["The request is sent as a POST request to the specified URL with the gift card class ID as a path parameter."],["The request body should contain an `AddMessageRequest` object as defined in the API reference."],["Upon successful execution, the API returns the updated `GiftCardClass` object in the response body."],["This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This describes adding a message to a gift card class using a `POST` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage`. The `resourceId`, a unique class identifier, is a path parameter. The request body uses the `AddMessageRequest` format. A successful response returns a JSON object containing the updated `GiftCardClass` resource. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]