Method: flightclass.list
הפונקציה מחזירה רשימה של כל סוגי הכיתות בטיסות עבור מזהה מנפיק נתון.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של שאילתה
פרמטרים |
issuerId |
string (int64 format)
המזהה של המנפיק המורשה לפרסם סיווגים.
|
token |
string
משמש לקבלת קבוצת התוצאות הבאה אם צוין maxResults , אבל יש יותר מ-maxResults כיתות שזמינות ברשימה. לדוגמה, אם יש לכם רשימה של 200 כיתות ואתם קוראים ל-list עם maxResults מוגדר כ-20, הפונקציה list תחזיר את 20 הכיתות הראשונות ואת אסימון. קוראים שוב ל-list עם maxResults מוגדר כ-20 ועם האסימון כדי לקבל את 20 הכיתות הבאות.
|
maxResults |
integer
משמש לציון המספר המקסימלי של תוצאות שהוחזרו על ידי רשימה. אם לא מגדירים את maxResults , כל התוצאות יחזרו.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול נתונים במבנה הבא:
שדות |
resources[] |
object (FlightClass )
המשאבים התואמים לבקשת הרשימה.
|
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 flight classes for a specified issuer ID."],["Uses a GET request to the `walletobjects.googleapis.com/walletobjects/v1/flightClass` endpoint with query parameters for issuer ID, pagination token, and maximum results."],["Requires an empty request body and returns a JSON response containing an array of flight class resources and pagination information."],["Needs authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope."]]],["This document details retrieving a list of flight classes via a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/flightClass`. It requires an issuer ID, and optionally uses a `token` and `maxResults` for pagination. The request body must be empty. The successful response returns a JSON structure containing an array of `FlightClass` resources and pagination information. OAuth scope `https://www.googleapis.com/auth/wallet_object.issuer` is mandatory.\n"]]