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 הכיתות הראשונות ואסימון. רשימת השיחות שוב עם הערך 20 והאסימון maxResults כדי לקבל את 20 הכיתות הבאות.
|
maxResults |
integer
משמש לציון המספר המקסימלי של תוצאות שהוחזרו על ידי רשימה. אם לא מגדירים את maxResults , מוחזרות כל התוצאות.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
שדות |
resources[] |
object (LoyaltyClass )
משאבים שתואמים לבקשת הרשימה.
|
pagination |
object (Pagination )
עימוד של התשובה.
|
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]