googleapis / googleapis/google-api-nodejs-client

How to use maxResults in inappproducts.list

Open
#2,670 8 comments 0 reactions 0 assignees View on GitHub
type: question
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

Hello,
I'm tring to get full list of in app products of an android application. This is my code:

```
const androidpublisher = require('@googleapis/androidpublisher')

[...]

const auth = new androidpublisher.auth.GoogleAuth({
keyFilename: path.join(__dirname, '..', 'config', 'credential.json'),
scopes: ['https://www.googleapis.com/auth/androidpublisher']
})

const client = await androidpublisher.androidpublisher({
version: 'v3',
auth: await auth.getClient()
})

const { data } = await client.inappproducts.list({
packageName,
maxResults: 1000,
token
})
```

But I'm not able to get more than 100 products per request, `maxResults` seems not to work. Where I'm wrong?

Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.