Method: eventticketclass.list
Zwraca listę wszystkich klas biletu na wydarzenie dla podanego identyfikatora wydawcy.
Żądanie HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/eventTicketClass
Adres URL używa składni transkodowania gRPC.
Parametry zapytania
Parametry |
issuerId |
string (int64 format)
Identyfikator wydawcy autoryzowanego do wyświetlenia listy klas.
|
token |
string
Umożliwia uzyskanie następnego zestawu wyników, jeśli określono maxResults , ale liczba klas dostępnych na liście jest większa niż maxResults . Jeśli na przykład na liście jest 200 klas i wywołujesz listę z wartością maxResults ustawioną na 20, lista zwróci pierwsze 20 klas i token. Wywołaj ponownie listę z wartością maxResults ustawioną na 20 i tokenem, aby uzyskać kolejne 20 klas.
|
maxResults |
integer
Określa maksymalną liczbę wyników zwracanych przez listę. Jeśli wartość maxResults nie jest zdefiniowana, zwracane są wszystkie wyniki.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Pola |
resources[] |
object (EventTicketClass )
Zasoby odpowiadające żądaniu listy.
|
pagination |
object (Pagination )
Podział odpowiedzi na strony.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-07 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-07 UTC."],[[["Retrieves a list of all event ticket classes for a given issuer ID using a GET request to the specified endpoint."],["Allows for pagination using query parameters like `token` and `maxResults` to handle large result sets."],["Requires an empty request body and returns a JSON response containing an array of `EventTicketClass` resources and pagination details."],["Needs authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for access."]]],["The core action is retrieving a list of event ticket classes using a `GET` request to a specific URL. Key information includes the required `issuerId` query parameter for authorization, `token` for paginated results, and optional `maxResults` to limit the number of classes returned. The request body must be empty. The successful response includes an array of `resources` (event ticket classes) and `pagination` details in JSON format. Authorization requires the `wallet_object.issuer` scope.\n"]]