Method: flightclass.get
מחזירה את מחלקת הטיסה עם מזהה המחלקה הנתון.
בקשת HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של הכיתה. המזהה הזה חייב להיות ייחודי בכל המחלקות של המנפיק. הערך צריך להיות בפורמט issuer ID.identifier כאשר הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של FlightClass
.
היקפי ההרשאות
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-04 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-04 (שעון UTC)."],[[["Retrieves a specific flight class using its unique identifier."],["The request requires an empty body and uses a `GET` method with the class ID as a path parameter."],["Successful responses return a `FlightClass` object containing details about the specified class."],["Authorization is required using the `wallet_object.issuer` OAuth scope."],["Class IDs must follow a specific format with issuer and user-defined components."]]],["The core content describes retrieving a flight class using its unique identifier. A `GET` request is sent to the provided URL, including the `resourceId` as a path parameter in the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`. The request body should be empty. A successful response returns a `FlightClass` instance. This operation requires OAuth authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope. The identifier format only include alphanumeric characters, '.', '_', or '-'.\n"]]