调用ListRecordingOfDualTrack根据通话记录获取通话的双轨录音。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListRecordingOfDualTrack |
系统规定参数。取值:ListRecordingOfDualTrack。 |
InstanceId | String | 是 | d278629c-c687-4aa3-b044-4fe9b012e7ef |
呼叫中心实例ID |
PageNumber | Integer | 是 | 1 |
分页序号 |
PageSize | Integer | 是 | 20 |
分页大小 |
StartTime | Long | 是 | 1542967200000 |
获取的历史数据的开始时间。 缺省为0,代表早于目前的时间半个小时开始。 |
StopTime | Long | 是 | 1542997200000 |
获取的历史数据的终止时间。 缺省为0,代表截止到目前的时间。 |
AgentId | String | 否 | 1018206773021870 |
坐席ID |
CalledNumber | String | 否 | 15732036617 |
被叫号码 |
CallingNumber | String | 否 | 02552370024 |
主叫号码 |
ConnectId | String | 否 | 1300017658 |
话务ID |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | OK |
响应码 |
HttpStatusCode | Integer | 200 |
HTTP状态码 |
Message | String | 无 |
响应信息 |
Recordings |
获取到的录音详单 |
||
List |
对象列表 |
||
Recording |
对象列表 |
||
AgentId | String | 1018206773021870 |
座席ID。 坐席ID等同于该座席的RAM子账户ID。 |
AgentName | String | 测试 |
座席名称 |
CalledNumber | String | 15732036617 |
被叫号码 |
CallingNumber | String | 02552370024 |
主叫号码 |
Channel | String | xxx |
座席所在音轨标示 |
ContactId | String | 1300017658 |
话务ID,全局唯一,对应于ACC的ACID。 |
ContactType | String | Outbound |
通话类型。 参考枚举类型:Inbound(0) 内呼, Outbound(1) 外呼, Internal(2) 内部通话。 |
Duration | Integer | 120 |
通话持续时间,单位为秒。 |
FileDescription | String | xxx |
录音文件别名 |
FileName | String | 4219097556-10-20-49.mkv |
录音文件名 |
FilePath | String | http://xxx |
录音文件在OSS中的保存位置 |
InstanceId | String | d278629c-c687-4aa3-b044-4fe9b012e7e |
呼叫中心实例ID |
StartTime | Long | 1542968440000 |
电话开始时间,内呼从进入IVR开始,外呼从开始接通计算。 |
PageNumber | Integer | 1 |
分页序号 |
PageSize | Integer | 20 |
分页大小 |
TotalCount | Integer | 1 |
对象总数 |
RequestId | String | D8135D21-1553-4B18-A876-427D74543841 |
请求ID |
Success | Boolean | true |
是否成功 |
示例
请求示例
http(s)://ccc.aliyuncs.com/?Action=ListRecordingOfDualTrack
&InstanceId=d278629c-c687-4aa3-b044-4fe9b012e7ef
&PageNumber=1
&PageSize=20
&StartTime=1542967200000
&StopTime=1542997200000
&<公共请求参数>
正常返回示例
XML
格式
<ListRecordingOfDualTrackResponse>
<code>OK</code>
<httpStatusCode>200</httpStatusCode>
<recordings>
<list>
<calledNumber>15732036617</calledNumber>
<callingNumber>02552370024</callingNumber>
<contactId>1300017658</contactId>
<contactType>Outbound</contactType>
<duration>67</duration>
<fileName>4219097556-10-20-49.mkv</fileName>
<filePath>http://xxx</filePath>
<instanceId>d278629c-c687-4aa3-b044-4fe9b012e7ef</instanceId>
<startTime>1542968440000</startTime>
</list>
<pageNumber>1</pageNumber>
<pageSize>20</pageSize>
<totalCount>1</totalCount>
</recordings>
<requestId>D8135D21-1553-4B18-A876-427D74543841</requestId>
<success>true</success>
</ListRecordingOfDualTrackResponse>
JSON
格式
{
"recordings":{
"totalCount":1,
"pageSize":20,
"pageNumber":1,
"list":[
{
"startTime":1542968440000,
"callingNumber":"02552370024",
"calledNumber":"15732036617",
"duration":67,
"contactId":"1300017658",
"filePath":"http://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com/accrec/acc2626/181123/4219097556-10-20-49.mkv?Expires=1543292783&OSSAccessKeyId=LTAIvKWEr4DoFSqz&Signature=An%2Bs962nf8wYN%2B7jVgLCHps3oWk%3D",
"instanceId":"d278629c-c687-4aa3-b044-4fe9b012e7ef",
"fileName":"4219097556-10-20-49.mkv",
"contactType":"Outbound"
}
]
},
"httpStatusCode":200,
"requestId":"D8135D21-1553-4B18-A876-427D74543841",
"code":"OK",
"success":true
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交