Method: purchases.subscriptionsv2.get
subscriptionsv2.get recupera i metadati di un abbonamento
Richiesta HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
packageName |
string
Il pacchetto dell'applicazione per cui è stato acquistato l'abbonamento (ad esempio "com.some.thing").
|
token |
string
Obbligatorio. Il token fornito al dispositivo dell'utente al momento dell'acquisto dell'abbonamento.
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di SubscriptionPurchaseV2
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/androidpublisher
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-12-17 UTC.
[null,null,["Ultimo aggiornamento 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"]]