Method: inappproducts.batchGet
Liest mehrere In-App-Produkte, die verwaltete Produkte oder Abos sein können.
Diese Methode sollte nicht 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:batchGet
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Paketname der App.
|
Abfrageparameter
Parameter |
sku[] |
string
Eindeutige Kennung für die In-App-Produkte.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Antwortnachricht für den Endpunkt „subscriptions.batchGet“.
Bei Erfolg enthält der Antworttext Daten mit der folgenden Struktur:
JSON-Darstellung |
{
"inappproduct": [
{
object (InAppProduct )
}
]
} |
Felder |
inappproduct[] |
object (InAppProduct )
Die Liste der angeforderten In-App-Produkte in der Reihenfolge der Anfrage.
|
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)."],[[["Reads multiple in-app products, including managed products and subscriptions, but should not be used to retrieve subscriptions."],["Sends an HTTP GET request to the specified endpoint with package name and product identifiers as parameters."],["Requires an empty request body and returns a response containing a list of in-app products."],["The response is structured in JSON format with an array of `inappproduct` objects, each representing an in-app product."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This outlines how to retrieve multiple in-app products (excluding subscriptions) via a `GET` request to the Android Publisher API. The request URL requires the app's package name as a path parameter and a list of unique product identifiers as query parameters (sku[]). The request body must be empty. A successful response returns a JSON object containing a list of in-app products, ordered as requested, with details provided within an InAppProduct object. This process requires specific OAuth authorization scopes to be granted.\n"]]