Method: loyaltyclass.list
แสดงผลรายการคลาสความภักดีทั้งหมดสำหรับรหัสผู้ออกบัตรที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
issuerId |
string (int64 format)
รหัสผู้ออกบัตรที่ได้รับอนุญาตให้แสดงรายการคลาส
|
token |
string
ใช้เพื่อรับผลลัพธ์ชุดถัดไปหากมีการระบุ maxResults แต่มีชั้นเรียนในรายการมากกว่า maxResults ชั้นเรียน เช่น หากมีลิสต์ 200 ชั้นเรียน และรายการโทรที่มี maxResults ตั้งไว้เป็น 20 รายชื่อจะแสดง 20 คลาสแรกพร้อมโทเค็น ตั้งค่ารายการการโทรอีกครั้งโดยตั้งค่า maxResults เป็น 20 และกำหนดโทเค็นเพื่อเข้าสู่ชั้นเรียนถัดไปอีก 20 รายการ
|
maxResults |
integer
ระบุจำนวนผลลัพธ์สูงสุดที่รายการส่งคืนมา ระบบจะแสดงผลผลลัพธ์ทั้งหมดหากไม่ได้กำหนด maxResults
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resources[] |
object (LoyaltyClass )
ทรัพยากรที่เกี่ยวข้องกับคำขอรายการ
|
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 paginated list of all loyalty classes for a specified issuer ID."],["Allows filtering the results by specifying the maximum number of results returned (`maxResults`) and using tokens for pagination."],["Requires an empty request body and returns a JSON response containing an array of loyalty classes and pagination information."],["Needs authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This outlines retrieving a list of loyalty classes. Use a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass`. Required query parameters include `issuerId`. Optional query parameters `token` and `maxResults` are used for pagination. The request body must be empty. The successful response contains a JSON object with `resources` and `pagination` fields. Requires OAuth scope `https://www.googleapis.com/auth/wallet_object.issuer`.\n"]]