Method: giftcardclass.get
Gibt die Geschenkkartenklasse mit der angegebenen Klassen-ID zurück.
HTTP-Anfrage
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
resourceId |
string
Die eindeutige Kennung einer Klasse. Diese ID muss für alle Klassen eines Ausstellers eindeutig sein. Dieser Wert sollte das Format issuer ID haben.identifier, wobei die erstere von Google ausgestellt und die zweite von Ihnen ausgewählt wird. Die eindeutige Kennung darf nur alphanumerische Zeichen sowie „.“, „_“ oder „-“ enthalten.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von GiftCardClass
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/wallet_object.issuer
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-04 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]