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