I'm using the python SDK with the analytics api.
Specifically using the "Post Conversation Details Query," when I request subsequent pages, rather than giving me the next 25 results, they are shifted by 1.
e.g. Page 0 gives me records 0-24, page 2 gives 1-25, page 3 gives 2-26, etc.
I am explicitly setting the page size to 25
Based on the following documentation results from subsequent pages should give an entirely new set.
https://developer.mypurecloud.com/api/rest/tips/index.html#6
I have not checked to see if other queries behave in the same manner.
I originally submitted this to support. Here is a simple query example that exhibits this behavior,
{
"interval": "2016-06-22T00:00:00.000Z\/2016-06-23T00:00:00.000Z",
"paging": {
"pageSize": 5,
"pageNumber":0
}
}
This will give 5 results, in my case with the following id's
310433b2-7b47-4060-9025-2fa4620ff22f
596ef13e-5c82-4793-90c3-d0e606014284
de510c2e-29f2-4859-99e6-6cd30f2b1491
6e36b3a7-640b-402a-8540-29bf25c5368b
5e86d12c-e1db-4d47-a4d0-fc497722be10
When i set pageNumber to 1, I get
596ef13e-5c82-4793-90c3-d0e606014284
de510c2e-29f2-4859-99e6-6cd30f2b1491
6e36b3a7-640b-402a-8540-29bf25c5368b
5e86d12c-e1db-4d47-a4d0-fc497722be10
f4f80d74-9898-46b5-9769-bde4b8d6f1f5
4 of which were on the previous page.
It's easy enough to increment pageNumber by pageSize; however, this isn't consistent with the documentation or standard paging.
There is an issue with paging on this resource. The issue is being investigated under API-1684.