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 классов и токен. Снова вызовите список с maxResults , равным 20, и маркером для получения следующих 20 классов. |
maxResults | integer Определяет максимальное количество результатов, возвращаемых списком. Все результаты возвращаются, если maxResults не определен. |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа содержит данные следующей структуры:
Поля |
---|
resources[] | object ( FlightClass ) Ресурсы, соответствующие запросу списка. |
pagination | object ( Pagination ) Пагинация ответа. |
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/wallet_object.issuer
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eRetrieves a paginated list of all flight classes for a specified issuer ID.\u003c/p\u003e\n"],["\u003cp\u003eUses a GET request to the \u003ccode\u003ewalletobjects.googleapis.com/walletobjects/v1/flightClass\u003c/code\u003e endpoint with query parameters for issuer ID, pagination token, and maximum results.\u003c/p\u003e\n"],["\u003cp\u003eRequires an empty request body and returns a JSON response containing an array of flight class resources and pagination information.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["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"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.FlightClassListResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nReturns a list of all flight classes for a given issuer ID.\n\nHTTP request\n\n`GET https://walletobjects.googleapis.com/walletobjects/v1/flightClass`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nQuery parameters\n\n| Parameters ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `issuerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the issuer authorized to list classes. |\n| `token` | `string` Used to get the next set of results if `maxResults` is specified, but more than `maxResults` classes are available in a list. For example, if you have a list of 200 classes and you call list with `maxResults` set to 20, list will return the first 20 classes and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 classes. |\n| `maxResults` | `integer` Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body If successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"resources\": [ { object (/wallet/reference/rest/v1/flightclass#FlightClass) } ], \"pagination\": { object (/wallet/reference/rest/v1/Pagination) } } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------|\n| `resources[]` | `object (`[FlightClass](/wallet/reference/rest/v1/flightclass#FlightClass)`)` Resources corresponding to the list request. |\n| `pagination` | `object (`[Pagination](/wallet/reference/rest/v1/Pagination)`)` Pagination of the response. |\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/wallet_object.issuer`"]]