Hansmuffs | 2023-01-09 15:10:06 UTC | #1
Hi,
I set the body element like this:
create an instance of the API class
api_instance = PureCloudPlatformClientV2.ConversationsApi(apiclient) body = PureCloudPlatformClientV2.ConversationQuery()
body.interval = '2023-01-03T00:00:00.000+0000'/'2023-01-04T00:00:00.000+0000' body.pagesize = 100
But the pagesize is still default 25. What's wrong with my code?
tim.smith | 2023-01-09 15:20:36 UTC | #2
Please refer to the Python SDK documentation: https://developer.genesys.cloud/devapps/sdk/docexplorer/purecloudpython/ConversationQuery. The ConversationQuery class has a property named paging. This is also documented in the API resource documentation: POST /api/v2/analytics/conversations/details/query.
Hansmuffs | 2023-01-09 15:31:45 UTC | #3
I know that their is these function paging. But this function is not working or I have wrong coding?!
tim.smith | 2023-01-09 15:36:45 UTC | #4
Hansmuffs, post:1, topic:17895
body.pagesize = 100
tim.smith, post:2, topic:17895
The ConversationQuery class has a property named paging
pagesize != paging. You need to use the documented properties. Your pagesize property is being ignored because of wrong coding.
system | 2023-02-08 15:37:31 UTC | #5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 17895