Method: genericclass.get
Menampilkan class generik dengan ID class yang diberikan.
Permintaan HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
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 issuerID.identifier dengan issuerID diterbitkan oleh Google dan identifier dipilih oleh Anda. ID unik hanya dapat berisi karakter alfanumerik, . , _ , atau - .
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan berisi instance GenericClass
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
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 2025-03-13 UTC.
[null,null,["Terakhir diperbarui pada 2025-03-13 UTC."],[[["Retrieves a generic class with a specific class ID using a GET request."],["The class ID must be unique across all classes from an issuer and follow a specific format."],["The request body should be empty, and the response includes the GenericClass object if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core content describes retrieving a generic class using its ID. A `GET` request is made to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}`, utilizing gRPC Transcoding. The `resourceId` path parameter, formatted as `issuerID.identifier`, uniquely identifies the class. The request body must be empty. A successful request returns a `GenericClass` instance in the response body. Access requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]