Method: giftcardclass.get
Zwraca klasę karty podarunkowej o podanym identyfikatorze klasy.
Żądanie HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{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 GiftCardClass
.
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-04 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-04 UTC."],[[["Retrieves a gift card class using its unique identifier."],["The request requires an empty body and uses the `GET` HTTP method."],["The response provides the details of the gift card class if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["Class ID should adhere to a specific format, including the issuer ID and a unique identifier chosen by the user."]]],["The core content describes retrieving a gift card class using a GET request. The request URL is structured with a `resourceId` path parameter, which uniquely identifies the class and follows a specific format. The request body must be empty. A successful response returns an instance of `GiftCardClass`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `gRPC Transcoding` syntax is used for the URL.\n"]]