Method: genericobject.list
הפונקציה מחזירה רשימה של כל האובייקטים הכלליים למזהה מנפיק נתון.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/genericObject
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של שאילתה
פרמטרים |
classId |
string
מזהה המחלקה שהאובייקטים שלה יופיעו ברשימה.
|
token |
string
משמש לקבלת קבוצת התוצאות הבאה אם maxResults צוין, אבל יש יותר מ-maxResults אובייקטים ברשימה. לדוגמה, אם יש לכם רשימה של 200 אובייקטים ואתם קוראים לרשימה maxResults מוגדר ל-20, הרשימה תחזיר את 20 האובייקטים הראשונים ואסימון. רשימת הקריאות שוב עם maxResults מוגדרת ל-20 והאסימון כדי לקבל את 20 האובייקטים הבאים.
|
maxResults |
integer
מזהה את המספר המקסימלי של תוצאות שמוחזרות על ידי רשימה. אם לא מגדירים את maxResults , מוחזרות כל התוצאות.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
תגובה של genericobject.list שמכיל רשימה של כל האובייקטים הגנריים שמשויכים למזהה מנפיק נתון.
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
resources[] |
object (GenericObject )
המשאבים התואמים לבקשת הרשימה.
|
pagination |
object (Pagination )
חלוקה לדפים של התשובה.
|
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-07 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-07 (שעון UTC)."],[[["Retrieves a paginated list of all generic objects associated with a specific issuer ID."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["The request is made using an HTTP GET to the `https://walletobjects.googleapis.com/walletobjects/v1/genericObject` endpoint."],["Filter results by class ID and control pagination using query parameters like `maxResults` and `token`."],["The response includes an array of `GenericObject` resources and pagination details."]]],["This API retrieves a list of generic objects for a specified issuer ID using a `GET` request to the provided URL. It supports query parameters: `classId` to filter by class, `token` for pagination, and `maxResults` to limit the number of returned objects. The request body must be empty. The successful response is in JSON format, containing an array of `resources` and `pagination` details. It requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]