Method: inappproducts.get
Ein In-App-Produkt wird abgerufen. Das kann ein verwaltetes Produkt oder ein Abo sein.
Diese Methode sollte nicht mehr zum Abrufen von Abos verwendet werden. Weitere Informationen findest du in diesem Artikel.
HTTP-Anfrage
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Paketname der App.
|
sku |
string
Eindeutige Kennung für das In-App-Produkt.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von InAppProduct
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/androidpublisher
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-12-17 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-12-17 (UTC)."],[[["Retrieves details for a specified in-app product within a given app package."],["This method is deprecated for subscriptions; refer to the provided link for alternative approaches for subscriptions."],["Requires `packageName` and `sku` as path parameters to identify the target in-app product."],["Utilizes an empty request body and returns an `InAppProduct` object upon successful execution."],["Requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization."]]],["The core actions involve retrieving an in-app product using a GET request to a specific URL: `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`. Key information includes the use of path parameters, `packageName` and `sku`, to identify the app and product respectively. The request body must be empty. Successful requests return an instance of `InAppProduct`. This method requires authorization via the `https://www.googleapis.com/auth/androidpublisher` OAuth scope and is not to be used to retrieve subscriptions.\n"]]