Method: giftcardclass.list
แสดงผลรายการประเภทบัตรของขวัญทั้งหมดสำหรับรหัสผู้ออกบัตรที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
issuerId |
string (int64 format)
รหัสผู้ออกบัตรที่ได้รับอนุญาตให้แสดงรายการคลาส
|
token |
string
ใช้เพื่อรับผลลัพธ์ชุดถัดไปหากมีการระบุ maxResults แต่มีชั้นเรียนในรายการมากกว่า maxResults ชั้นเรียน เช่น หากมีลิสต์ 200 ชั้นเรียน และรายการโทรที่มี maxResults ตั้งไว้เป็น 20 รายชื่อจะแสดง 20 คลาสแรกพร้อมโทเค็น ตั้งค่ารายการการโทรอีกครั้งโดยตั้งค่า maxResults เป็น 20 และกำหนดโทเค็นเพื่อเข้าสู่ชั้นเรียนถัดไปอีก 20 รายการ
|
maxResults |
integer
ระบุจำนวนผลลัพธ์สูงสุดที่รายการส่งคืนมา ระบบจะแสดงผลผลลัพธ์ทั้งหมดหากไม่ได้กำหนด maxResults
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resources[] |
object (GiftCardClass )
ทรัพยากรที่เกี่ยวข้องกับคำขอรายการ
|
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"],[[["Retrieves a list of all gift card classes for a specified issuer ID using a GET request."],["Allows pagination to handle large result sets using `token` and `maxResults` query parameters."],["The response includes an array of `GiftCardClass` objects and pagination details."],["Requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This endpoint retrieves gift card class lists for a specific issuer ID using a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass`. Required query parameters include the `issuerId` and optional ones like `token` and `maxResults` for pagination. The request body must be empty. A successful response includes a JSON body with a list of `GiftCardClass` resources and pagination details. The `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope is needed.\n"]]