Method: inappproducts.list
アプリ内アイテム(管理対象アイテムおよび定期購入)のリストを作成します。
アプリに多数のアプリ内アイテムがある場合、レスポンスはページングされる場合があります。この場合、レスポンス フィールド tokenPagination.nextPageToken
が設定され、呼び出し元は次のページを取得するために token
リクエスト パラメータとしてその値を提供する必要があります。
このメソッドは、定期購入を取得するためには使用しないでください。詳しくは、こちらの記事をご覧ください。
HTTP リクエスト
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
packageName |
string
アプリのパッケージ名。
|
クエリ パラメータ
パラメータ |
token |
string
ページ分けトークン。空の場合、リストは最初のアイテムから始まります。
|
startIndex (deprecated) |
integer (uint32 format)
非推奨となり、無視されます。次のページを取得するには token パラメータを設定します。
|
maxResults (deprecated) |
integer (uint32 format)
非推奨となり、無視されます。ページサイズはサーバーによって決まります。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
すべてのアプリ内アイテムを一覧で表示するレスポンス。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
フィールド |
kind |
string
このレスポンスの kind(「androidpublisher#inappproductsListResponse」)。
|
inappproduct[] |
object (InAppProduct )
すべてのアプリ内アイテム。
|
tokenPagination |
object (TokenPagination )
1 ページを超えるアイテムを処理するページ分けトークン。
|
pageInfo (deprecated) |
object (PageInfo )
非推奨で、未設定です。
|
認可スコープ
次の 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。"],[[["Lists all in-app products for an application, including both managed products and subscriptions, with pagination for large datasets."],["It is recommended to utilize the `token` parameter for pagination instead of the deprecated `startIndex` and `maxResults` parameters."],["This method should no longer be used to retrieve subscriptions, and developers should refer to the provided article for alternative methods."],["Requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope for access."],["The response provides details about the in-app products, pagination information, and overall response structure in JSON format."]]],["This API retrieves a list of in-app products (managed products and subscriptions) via a `GET` request to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts`. Specify the app's package name in the path. Pagination is handled through the `token` query parameter; if the response includes `tokenPagination.nextPageToken`, use its value to retrieve the next page. The request body must be empty, and authorization requires the `androidpublisher` OAuth scope. Subscriptions should not be retrieved with this method anymore.\n"]]