Method: purchases.subscriptionsv2.get
subscriptionsv2.get – Metadaten zu einem Abo abrufen
HTTP-Anfrage
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
packageName |
string
Das Paket der Anwendung, für die dieses Abo gekauft wurde (z. B. „com.beispiel.app“).
|
token |
string
Erforderlich. Das Token, das dem Gerät des Nutzers beim Kauf des Abos bereitgestellt wurde.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von SubscriptionPurchaseV2
.
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 metadata for a specific subscription purchase within a given application's package."],["Requires providing the application package name and the purchase token in the request URL."],["Returns detailed information about the subscription, such as purchase status, start/end times, and payment details, if successful."],["Authentication is necessary using the `androidpublisher` OAuth scope."]]],["This document outlines the process for retrieving metadata about a subscription using the `subscriptionsv2.get` method. This is done via a `GET` HTTP request to a specific URL containing the application's package name and a purchase token. The request body must be empty. The response, if successful, contains subscription details in the `SubscriptionPurchaseV2` format. This process requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. The path parameters are package name and token.\n"]]