Use the conversation api to find the conversation id, then the recording api to get the recording.
https://developer.mypurecloud.com/api/rest/v2/analytics/conversation.htmlhttps://developer.mypurecloud.com/api/rest/v2/recording/index.htmlThis is an example request body for the conversation query. It's using the java version of the SDK.
com.mypurecloud.sdk.v2.model.ConversationQuery requestBody = new ConversationQuery();
AnalyticsQueryFilter f = new AnalyticsQueryFilter().type(com.mypurecloud.sdk.v2.model.AnalyticsQueryFilter.TypeEnum.AND);
AnalyticsQueryPredicate dnisPredicate = new AnalyticsQueryPredicate()
.operator(OperatorEnum.MATCHES)
.dimension(DimensionEnum.USERID)
.value("<insertAgentIdHere>")
.type(TypeEnum.DIMENSION);
f.setPredicates(ImmutableList.of(dnisPredicate));
requestBody.setSegmentFilters(ImmutableList.of(f));
requestBody.setOrderBy(OrderByEnum.CONVERSATIONSTART);
requestBody.setOrder(OrderEnum.DESC);
//the conversation was only 30 seconds long, but padding the start & end times a little bit
String start = "2018-08-08T12:51:00";
String end = "2018-08-08T12:53:00";
requestBody.setInterval(start + "/" + end);
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------
Original Message:
Sent: 08-08-2018 09:41
From: Kamlesh Mahapatra
Subject: Fetch the Call Recording by the API call (RCBS)(Recording Cloud Backup Service))
Is there a way to fetch the call recording based on the AgentId and timestamp . Basically i am looking to fetch only one interation (recording) based on the AgentId and Timestamp .
Can any one help on this ?
------------------------------
Kamlesh Mahapatra
------------------------------