Method: monetization.subscriptions.batchGet
HTTP リクエスト
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
必須。定期購入を取得する対象の親アプリ(パッケージ名)。すべてのリクエストの packageName フィールドと同じである必要があります。
|
クエリ パラメータ
パラメータ |
productIds[] |
string
必須。取得する定期購入商品 ID のリスト(100 個まで)。リスト内の ID は一意である必要があります。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
subscriptions.batchGet エンドポイントに対するレスポンス メッセージ。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
フィールド |
subscriptions[] |
object (Subscription )
リクエストされた定期購入のリスト(リクエストと同じ順序)。
|
認可スコープ
次の 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。"],[[["Retrieves details for one or more app subscriptions using their product IDs."],["Requires providing the app's package name and a list of subscription product IDs."],["Returns a list of subscriptions corresponding to the provided product IDs, if found."],["Uses the `GET` HTTP method and requires the `https://www.googleapis.com/auth/androidpublisher` authorization scope."],["Request body should be empty."]]],["This document details retrieving multiple subscriptions via a `GET` request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions:batchGet`. The `packageName` is a mandatory path parameter. A `productIds[]` query parameter, containing up to 100 unique subscription IDs, is also required. The request body must be empty. A successful response includes a JSON object with a `subscriptions[]` field that lists requested subscriptions in the order they were requested. The operation requires the `androidpublisher` OAuth scope.\n"]]