Method: purchases.products.get
HTTP 要求
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
售出應用程式內產品的應用程式套件名稱 (例如「com.some.thing」)。
|
productId |
string
應用程式內產品 SKU (例如「com.some.thing.inapp1」)。
|
token |
string
購買應用程式內產品時,提供給使用者裝置的權杖。
|
回應主體
如果成功,回應主體會包含 ProductPurchase
的執行例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-17 (世界標準時間)。
[null,null,["上次更新時間:2024-12-17 (世界標準時間)。"],[[["This operation checks the purchase and consumption status of an in-app product."],["It requires an HTTP GET request to a specific URL with the package name, product ID, and purchase token."],["The request body must be empty, and the response provides details about the product purchase."],["This functionality requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines the process to check the status of an in-app purchase. It uses a `GET` HTTP request to a specific URL, structured with `packageName`, `productId`, and `token` as path parameters. The request body must be empty. A successful request returns a `ProductPurchase` instance in the response body. The operation requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. It includes instructions to obtain a purchase status.\n"]]