Closed leggetter closed 7 years ago
Going off the debug log it seems the API does not return 50 items:
info: Request: { host: 'api.nexmo.com',
port: 443,
path: '/v1/applications?size=50&&api_key=****&api_secret=*****',
method: 'GET',
headers:
{ 'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'User-Agent': 'nexmo-node/1.1.0-beta1/v6.7.0' } }
Body: undefined
info: response ended: 200
Validator.response() - Error:
null
Validator.response() - Response:
{ count: 69,
page_size: 10,
page_index: 1,
_embedded:
{ applications:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] },
_links:
{ self: { href: '/v1/applications?page_size=10&page_index=1' },
first: { href: '/v1/applications?page_size=10' },
last: { href: '/v1/applications?page_size=10&page_index=7' },
next: { href: '/v1/applications?page_size=10&page_index=2' } } }
End Validator.response()
Found the problem: this API endpoint does not use size
but page_size
In the following command I would expect 50 entries to be shown. But only 10 are shown.