Urvish | 2024-05-14 03:36:31 UTC | #1
Hello, I m using python language and calling /api/v2/analytics/conversations/details/query API
following is just sample
body = PureCloudPlatformClientV2.ConversationQuery()
body.interval=interval
api_instance.post_analytics_conversations_details_query(body)
1)Here interval need to pass in UTC format only or can pass in diffrent tiemzone?
- in response , what will be time format of following properties? is it in UTC or certain timezone? So when it needs to consume in reporting query or stored in table or other purpose, one need to use as UTC time vs diff?conversationStart
conversationEnd
doc says it is Date time is represented as an ISO-8601 string.
Urvish | 2024-05-14 03:35:40 UTC | #2
Adding more details as How conversation start & end datetime is observed in python code.
# Query for conversation details
api_res= api_instance.post_analytics_conversations_details_query(body)
#before serialization
'conversation_end': datetime.datetime(2024, 5, 13, 13, 6, 16, 969000, tzinfo=tzutc()),
gen_api_client.sanitize_for_serialization(api_res.conversations)
#after serialization-conversationEnd is in following format
'2024-05-13T13:06:16.969000+00:00'
tim.smith | 2024-05-14 15:44:27 UTC | #3
The ISO-8601 string indicates the time zone. Z or 00 means UTC. https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators
system | 2024-06-13 15:45:19 UTC | #4
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: 26221