We are trying to receive information about customers, all we get is 20 results, would like to search next page as well. Should loop through all pages until null, but can't create a loop when using the web explorer, or?
What value should be paste to receive all results? (Leaving pageToken field empty only gives us 20 results.
https://developers.google.com/admin-sdk/reseller/v1/reference/subscriptions/list#try-it
Your problem is that you are specifying fields=
, but haven't included nextPageToken
as one of the fields. That is why there is no nextPageToken present in the response. By adding nextPageToken
(or omitting fields completely(v2) or setting fields=*
(v3)), your first page of results will include a nextPageToken, which you will provide as the value of pageToken
for your next call. Rinse, repeat until you get a response with no nextPageToken. For your first call, of course pageToken is blank.