Method: flightobject.addmessage
Menambahkan pesan ke objek penerbangan yang dirujuk oleh ID objek yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{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 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 (FlightObject )
Resource FlightObject 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 flight object using the object's unique identifier."],["Requires a POST request to the specified endpoint with the AddMessageRequest in the request body."],["Upon successful execution, the API responds with the updated FlightObject resource."],["The operation necessitates the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Utilizes path parameters to identify the specific flight object to which the message will be added."]]],["This document details adding a message to a flight object using a `POST` request to a specified URL. The URL includes a `resourceId` path parameter, a unique identifier for the flight object. The request body contains an `AddMessageRequest` instance. A successful response returns an updated `FlightObject`, represented in JSON, with a \"resource\" field. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]