Method: transitobject.list
แสดงผลรายการออบเจ็กต์การขนส่งทั้งหมดสำหรับรหัสผู้ออกคีย์ที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/transitObject
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
classId |
string
รหัสของคลาสที่ออบเจ็กต์จะปรากฏ
|
token |
string
ใช้เพื่อรับผลลัพธ์ชุดถัดไปหากระบุ maxResults แต่มีออบเจ็กต์มากกว่า maxResults รายการในลิสต์ ตัวอย่างเช่น หากคุณมีรายการ 200 ออบเจ็กต์ และรายการเรียกที่มี maxResults ตั้งค่าเป็น 20 รายการจะแสดงออบเจ็กต์ 20 รายการแรกและโทเค็น ตั้งค่ารายการการโทรอีกครั้งโดยตั้งค่า maxResults เป็น 20 และโทเค็นเพื่อรับออบเจ็กต์ 20 รายการถัดไป
|
maxResults |
integer
ระบุจำนวนผลลัพธ์สูงสุดที่รายการส่งคืนมา ระบบจะแสดงผลผลลัพธ์ทั้งหมดหากไม่ได้กำหนด maxResults
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resources[] |
object (TransitObject )
ทรัพยากรที่เกี่ยวข้องกับคำขอรายการ
|
pagination |
object (Pagination )
การใส่เลขหน้าคำตอบ
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-13 UTC
[null,null,["อัปเดตล่าสุด 2025-03-13 UTC"],[[["This endpoint retrieves all transit objects associated with a specific issuer ID using a GET request."],["The request requires an empty body and uses query parameters like `classId`, `token`, and `maxResults` for filtering and pagination."],["A successful response includes a list of transit objects and pagination details in JSON format."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This outlines retrieving transit objects for a specific issuer ID using a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/transitObject`. The request requires parameters like `classId`, `token` (for pagination), and `maxResults`. The request body must be empty. A successful response returns a JSON object containing an array of `TransitObject` resources and `pagination` details. Access requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]