Method: giftcardobject.addmessage
Menambahkan pesan ke objek kartu voucher yang dirujuk oleh ID objek yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{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 berisi karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan memuat instance AddMessageRequest
.
Isi respons
Jika berhasil, isi respons memuat data dengan struktur berikut:
Kolom |
resource |
object (GiftCardObject )
Resource GiftCardObject 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-07 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-07 UTC."],[[["Adds a message to an existing gift card object using the object ID."],["The request body should contain an AddMessageRequest as defined in the provided documentation."],["A successful response returns the updated GiftCardObject resource."],["This functionality requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This content outlines the process of adding a message to a gift card object. It uses a `POST` HTTP request to `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}/addMessage`, requiring a unique `resourceId` path parameter. The request body should be an `AddMessageRequest`, and a successful response returns an updated `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` is constructed from the issuer's ID and the user's identifier.\n"]]