Env : javascript, using XMLHttpRequest and JSON API.
When calling {URL}/posts/?{parameters} :
- the 10 first items are returned
- if the response contains more than 10 items, an attribute
{ "nextPageToken":"xyz" } is added to the JSON data response.
Then when calling {URL}/posts/?{parameters}&pageToken={nextPageToken} :
- the response contains the next 10 items
- a new
nextPageToken is returned until no more page
=> Looks like the expected behavior, working fine.
However:
When calling {URL}/posts/search/?q={query_string}{parameters} :
- the 10 first items are returned
- if the response contains more than 10 items, an attribute
{ "nextPageToken":"xyz" } is added to the JSON data response.
Then when calling
{URL}/posts/search/?q={query_string}{parameters}&pageToken={nextPageToken} :
- the 10 first items are displayed again (ie not the next 10),
- returned nextPageToken is the same than first call
Looks like pageToken is ignored for /posts/search/.
Is this the expected behavior ? How to access items of /posts/search/ response returning more than 10 items?
Env : javascript, using XMLHttpRequest and JSON API.
When calling
{URL}/posts/?{parameters}:{ "nextPageToken":"xyz" }is added to the JSON data response.Then when calling
{URL}/posts/?{parameters}&pageToken={nextPageToken}:nextPageTokenis returned until no more page=> Looks like the expected behavior, working fine.
However:
When calling
{URL}/posts/search/?q={query_string}{parameters}:{ "nextPageToken":"xyz" }is added to the JSON data response.Then when calling
{URL}/posts/search/?q={query_string}{parameters}&pageToken={nextPageToken}:- the 10 first items are displayed again (ie not the next 10),
- returned
nextPageTokenis the same than first callLooks like pageToken is ignored for /posts/search/.
Is this the expected behavior ? How to access items of /posts/search/ response returning more than 10 items?