Method: purchases.products.consume
HTTP 要求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
packageName |
string
售出應用程式內產品的應用程式套件名稱 (例如「com.some.thing」)。
|
productId |
string
應用程式內產品 SKU (例如「com.some.thing.inapp1」)。
|
token |
string
購買應用程式內產品時,提供給使用者裝置的權杖。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-18 (世界標準時間)。
[null,null,["上次更新時間:2024-12-18 (世界標準時間)。"],[[["Consumes a purchase for an in-app item using an HTTP POST request."],["Requires the package name, product SKU, and purchase token as path parameters."],["Has an empty request body and, if successful, returns an empty response body."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["The core function is consuming a purchase for an in-app item via a `POST` HTTP request. The request targets a specific URL using gRPC Transcoding syntax. It requires three path parameters: `packageName`, `productId`, and `token`. The request body must be empty. A successful operation returns an empty response body. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. Key actions are providing the necessary path parameters for the given request and ensuring an empty request body.\n"]]