Method: giftcardclass.addmessage
Menambahkan pesan ke class kartu voucher yang dirujuk oleh ID class yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk class. ID ini harus unik di semua class dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier 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 (GiftCardClass )
Resource GiftCardClass 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."],[[["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"]]