Method: loyaltyobject.addmessage
Menambahkan pesan ke objek loyalitas yang dirujuk oleh ID objek yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}/addMessage
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk objek. ID ini harus unik di semua objek dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier dengan yang pertama diterbitkan oleh Google dan yang kedua dipilih oleh Anda. ID unik Anda hanya boleh menyertakan karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan memuat instance AddMessageRequest
.
Isi respons
Jika berhasil, isi respons memuat data dengan struktur berikut:
Kolom |
resource |
object (LoyaltyObject )
Resource LoyaltyObject yang diperbarui.
|
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/wallet_object.issuer
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-21 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-21 UTC."],[[["Adds a message to an existing loyalty object using its object ID."],["The request requires a POST method and uses the object ID as a path parameter."],["The request body should contain an `AddMessageRequest` and the response will contain the updated `LoyaltyObject`."],["Authorization is required using the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core action is adding a message to a loyalty object using a `POST` request to the specified URL, incorporating gRPC Transcoding syntax. The request requires a unique `resourceId` (issuer ID.identifier) in the path. The request body utilizes the `AddMessageRequest` instance. Upon success, the response returns an updated `LoyaltyObject` resource, represented in JSON format, under the \"resource\" field. The operation requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]