Method: offerclass.get
Zwraca klasę oferty o podanym identyfikatorze klasy.
Żądanie HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator klasy. Ten identyfikator musi być unikalny wśród wszystkich klas wydawcy. Ta wartość powinna mieć format issuer ID.identifier, gdzie pierwszy identyfikator jest wystawiany przez Google, a drugi jest wybierany przez Ciebie. Unikalny identyfikator powinien zawierać tylko znaki alfanumeryczne oraz znaki „.”, „_” lub „-”.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu OfferClass
.
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 specific offer class using its unique class ID."],["The class ID must be unique across all classes from the issuer and follow a specific format."],["An empty request body is required, and a successful response returns the OfferClass object."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core content describes retrieving an offer class using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}`. The `resourceId` path parameter, a unique string identifier, is required. The request body must be empty. A successful request returns an `OfferClass` instance in the response body. This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]