Paging syntax for UserDetailsQuery

The page_number and page_size configuration seems to be ignored.
interval and order work as expected. Paging works as expected with the online query builder but not with the python api

Is this an implementation, documentation or PEBKAC issue?

body = PureCloudPlatformClientV2.UserDetailsQuery()
body.interval = '2017-08-08T04:00:00/2017-08-12T04:00:00'
body.page_size = 25
body.page_number = 1
body.order = "desc"
api = PureCloudPlatformClientV2.AnalyticsApi()
result = api.post_analytics_users_details_query(body)

Take a look at the docs for the UserDetailsQuery model. There is a property paging of type PagingSpec that has properties for page_size and page_number. I think your code should look something like this:

body.paging = PureCloudPlatformClientV2.PagingSpec()
body.paging.page_size = 25
body.paging.page_number = 1

Give this a try and let me know if this works for you. If not, I can dig deeper tomorrow.

This works thank you.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.