Method: offerobject.list
แสดงรายการออบเจ็กต์ข้อเสนอทั้งหมดสำหรับรหัสผู้ออกบัตรที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
classId |
string
รหัสของคลาสที่จะแสดงออบเจ็กต์
|
token |
string
ใช้เพื่อรับชุดผลลัพธ์ถัดไปหากระบุ maxResults แต่รายการมีออบเจ็กต์มากกว่า maxResults เช่น หากคุณมีรายการออบเจ็กต์ 200 รายการและเรียกใช้รายการโดยตั้งค่า maxResults เป็น 20 รายการ จะแสดงผลออบเจ็กต์ 20 รายการแรกและโทเค็น เรียกใช้รายการอีกครั้งโดยตั้งค่า maxResults เป็น 20 และโทเค็นเพื่อรับออบเจ็กต์ 20 รายการถัดไป
|
maxResults |
integer
ระบุจํานวนผลลัพธ์สูงสุดที่รายการแสดง ระบบจะแสดงผลลัพธ์ทั้งหมดหากไม่ได้กําหนด maxResults
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resources[] |
object (OfferObject )
ทรัพยากรที่สอดคล้องกับคําขอรายการ
|
pagination |
object (Pagination )
การแบ่งหน้าของคำตอบ
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-21 UTC
[null,null,["อัปเดตล่าสุด 2024-11-21 UTC"],[[["Retrieves a paginated list of all offer objects for a given issuer ID using the `GET` method."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Allows filtering by class ID and specifying the maximum number of results per page using query parameters."],["Returns an empty request body and a response body containing an array of offer objects and pagination details in JSON format."]]],["This outlines retrieving offer objects using a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/offerObject`. The `classId`, `token`, and `maxResults` parameters in the query are used to filter and paginate results. The request body must be empty. A successful response returns a JSON object containing an array of `OfferObject` resources and `Pagination` details. This process requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]