Method: flightclass.addmessage
Menambahkan pesan ke kelas penerbangan yang dirujuk oleh ID kelas yang diberikan.
Permintaan HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}/addMessage
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk class. 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
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON |
{
"resource": {
object (FlightClass )
}
} |
Kolom |
resource |
object (FlightClass )
Resource FlightClass 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 class using the provided class ID."],["The request body should contain an `AddMessageRequest` object and uses the `POST` method."],["If successful, the response returns the updated `FlightClass` object."],["Requires `wallet_object.issuer` authorization scope for access."],["Utilizes gRPC Transcoding for the HTTP request URL structure."]]],["This document outlines the process for adding a message to a flight class using a POST request to the `https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}/addMessage` endpoint. The `resourceId` path parameter, a unique identifier in the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`, specifies the target class. The request body utilizes the `AddMessageRequest`. Upon success, the response includes the updated `FlightClass` resource, necessitating `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope authorization.\n"]]