Method: genericobject.list
แสดงรายการออบเจ็กต์ทั่วไปทั้งหมดสำหรับรหัสผู้ออกบัตรที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/genericObject
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
classId |
string
รหัสของคลาสที่จะแสดงออบเจ็กต์
|
token |
string
ใช้เพื่อรับผลลัพธ์ชุดถัดไปหากระบุ maxResults แต่มีออบเจ็กต์มากกว่า maxResults รายการในลิสต์ ตัวอย่างเช่น หากคุณมีรายการ 200 ออบเจ็กต์ และรายการเรียกที่มี maxResults ตั้งค่าเป็น 20 รายการจะแสดงออบเจ็กต์ 20 รายการแรกและโทเค็น ตั้งค่ารายการการโทรอีกครั้งโดยตั้งค่า maxResults เป็น 20 และโทเค็นเพื่อรับออบเจ็กต์ 20 รายการถัดไป
|
maxResults |
integer
ระบุจํานวนผลลัพธ์สูงสุดที่รายการแสดง ระบบจะแสดงผลลัพธ์ทั้งหมดหากไม่ได้กําหนด maxResults
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
การตอบกลับ genericobject.list ซึ่งมีรายการออบเจ็กต์ทั่วไปทั้งหมดสำหรับรหัสผู้ออกบัตรที่ระบุ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resources[] |
object (GenericObject )
ทรัพยากรที่เกี่ยวข้องกับคำขอรายการ
|
pagination |
object (Pagination )
การแบ่งหน้าของคำตอบ
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-07 UTC
[null,null,["อัปเดตล่าสุด 2024-11-07 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"]]