Method: genericclass.addmessage
Belirtilen sınıf kimliğinin referansta bulunduğu genel sınıfa bir ileti ekler.
HTTP isteği
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}/addMessage
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 verenin tüm sınıfları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, AddMessageRequest
öğesinin bir örneğini içerir.
Yanıt gövdesi
Sınıfa yeni bir veren mesajı ekleme yanıtı. Bu, güncellenmiş GenericClass'ın tamamını içerir.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Alanlar |
resource |
object (GenericClass )
Güncellenen EventTicketClass 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."],[[["Adds a new message to an existing generic class identified by a unique class ID."],["The request requires providing an `AddMessageRequest` in the body and uses the `POST` method."],["The response provides the updated `GenericClass` object, including the new message."],["Utilizes the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."],["The class ID follows a specific format, \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e, with constraints on the characters allowed in the identifier."]]],["This document outlines the process for adding a message to a generic class using a `POST` HTTP request to a specific URL. The request requires a unique `resourceId` in the path, formatted as `issuer ID.identifier`. The request body must include an `AddMessageRequest` instance. Successful requests return an updated `GenericClass` in JSON format, contained within a `resource` field. The process necessitates authorization via the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]