Method: flightclass.get
Trả về hạng chuyến bay có mã hạng cho trước.
Yêu cầu HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
resourceId |
string
Giá trị nhận dạng duy nhất của một lớp. Mã này của một nhà phát hành phải là duy nhất trên tất cả các lớp. Giá trị này phải tuân theo định dạng issuer ID.identifier, trong đó mã do Google phát hành và mã sau do bạn chọn. Giá trị nhận dạng duy nhất của bạn chỉ được bao gồm ký tự chữ-số, ".", "_" hoặc "-".
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của FlightClass
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/wallet_object.issuer
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-03-13 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-03-13 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"]]