Method: genericobject.addmessage
Menambahkan pesan ke objek generik yang dirujuk oleh ID objek yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}/addMessage
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk objek. ID ini harus unik di semua kelas 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
Respons untuk menambahkan pesan penerbit baru ke objek. Ini berisi seluruh GenericObject yang diperbarui.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Kolom |
resource |
object (GenericObject )
Resource GenericObject 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 generic object using its unique identifier."],["The request should be a `POST` request to the specified URL with the object ID as a path parameter and an `AddMessageRequest` in the body."],["Successful responses will contain the updated `GenericObject` resource in JSON format."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This document details adding a message to a generic object via an HTTP POST request to `https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}/addMessage`. The `resourceId`, a unique object identifier, is a required path parameter. The request body contains an `AddMessageRequest`. A successful request returns an updated `GenericObject` in the response body, represented in JSON, including the `resource` field. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]