Method: genericobject.list
Menampilkan daftar semua objek generik untuk ID penerbit tertentu.
Permintaan HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/genericObject
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
classId |
string
ID class yang objeknya akan dicantumkan.
|
token |
string
Digunakan untuk mendapatkan kumpulan hasil berikutnya jika maxResults ditentukan, tetapi tersedia lebih dari maxResults objek dalam daftar. Misalnya, jika Anda memiliki daftar 200 objek dan Anda memanggil daftar dengan maxResults ditetapkan ke 20, daftar akan menampilkan 20 objek pertama dan satu token. Daftar panggilan lagi dengan maxResults ditetapkan ke 20 dan token untuk mendapatkan 20 objek berikutnya.
|
maxResults |
integer
Mengidentifikasi jumlah maksimum hasil yang ditampilkan oleh daftar. Semua hasil akan ditampilkan jika maxResults tidak ditentukan.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
respons generikobject.list yang berisi daftar semua objek generik untuk ID penerbit tertentu.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Kolom |
resources[] |
object (GenericObject )
Resource yang sesuai dengan permintaan daftar.
|
pagination |
object (Pagination )
Penomoran halaman respons
|
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 2025-03-13 UTC.
[null,null,["Terakhir diperbarui pada 2025-03-13 UTC."],[[["Retrieves a paginated list of all generic objects associated with a specific issuer ID."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["The request is made using an HTTP GET to the `https://walletobjects.googleapis.com/walletobjects/v1/genericObject` endpoint."],["Filter results by class ID and control pagination using query parameters like `maxResults` and `token`."],["The response includes an array of `GenericObject` resources and pagination details."]]],["This API retrieves a list of generic objects for a specified issuer ID using a `GET` request to the provided URL. It supports query parameters: `classId` to filter by class, `token` for pagination, and `maxResults` to limit the number of returned objects. The request body must be empty. The successful response is in JSON format, containing an array of `resources` and `pagination` details. It requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]