Method: purchases.products.consume
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
アプリ内アイテムが販売されたアプリのパッケージ名(例: 「com.some.thing」)。
|
productId |
string
アプリ内アイテムの SKU(例: 「com.some.thing.inapp1」)
|
token |
string
アプリ内アイテムの購入時にユーザーのデバイスに提供されたトークン。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-18 UTC。
[null,null,["最終更新日 2024-12-18 UTC。"],[[["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"]]