Method: monetization.subscriptions.list
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP リクエスト
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
必須。定期購入を読み取る対象の親アプリ(パッケージ名)。
|
クエリ パラメータ
パラメータ |
pageSize |
integer
返す定期購入の最大数。サービスが返す値はこれよりも少ないことがあります。指定されていない場合は、最大で 50 件の定期購入が返されます。最大値は 1,000 です。1,000 を超える値は 1,000 に強制変換されます。
|
pageToken |
string
前回の subscriptions.list 呼び出しから受け取ったページトークン。後続のページを取得するにはこれを指定します。 ページ分割を行う場合、subscriptions.list に指定する他のすべてのパラメータは、ページトークンを提供した呼び出しと一致する必要があります。
|
showArchived (deprecated) |
boolean
非推奨: 定期購入のアーカイブはサポートされていません。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
subscriptions.list のレスポンス メッセージ。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"subscriptions": [
{
object (Subscription )
}
],
"nextPageToken": string
} |
フィールド |
subscriptions[] |
object (Subscription )
指定アプリでの定期購入。
|
nextPageToken |
string
次のページを取得するために pageToken として送信できるトークン。このフィールドを省略すると、後続のページはなくなります。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-18 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-18 UTC。"],[[["Lists all subscriptions under a given app using an HTTP GET request."],["Requires providing the app's package name as a path parameter."],["Allows filtering by page size and using pagination for large result sets."],["Returns a list of subscriptions with details and a token for accessing further pages."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details how to list subscriptions for a given Android application using the Android Publisher API. It uses a `GET` HTTP request to the specified URL, including a required `packageName` path parameter. Optional query parameters like `pageSize` and `pageToken` enable pagination. The request body must be empty. The response includes a list of subscriptions, represented in JSON, and a `nextPageToken` for subsequent pages. This operation requires the `androidpublisher` OAuth scope.\n"]]