AI-generated Key Takeaways
-
This document outlines how to list all one-time products for a specific app using an HTTP GET request.
-
The request requires a
packageNamepath parameter and optionally acceptspageSizeandpageTokenquery parameters for pagination. -
The request body must be empty, and the successful response body will contain a list of
oneTimeProductsand an optionalnextPageToken. -
The request requires authorization using the
https://www.googleapis.com/auth/androidpublisherOAuth scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists all one-time products under a given app.
HTTP request
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/oneTimeProducts
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
packageName |
Required. The parent app (package name) for which the one-time product should be read. |
Query parameters
| Parameters | |
|---|---|
pageSize |
Optional. The maximum number of one-time product to return. The service may return fewer than this value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageToken |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
Request body
The request body must be empty.
Response body
Response message for onetimeproducts.list.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"oneTimeProducts": [
{
object ( |
| Fields | |
|---|---|
oneTimeProducts[] |
The one-time products from the specified app. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher