调用DownloadAllTypeRecording通过通话ID来下载原始以及合成录音。

说明 一通通话如果存在转接,那么会包含多个录音文件。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DownloadAllTypeRecording

系统规定参数。取值:DownloadAllTypeRecording

ContactId String 1272014011

待下载录音的通话ID

InstanceId String 9cfad875-6260-4a53-ab6e-b13e3fb31f7d

呼叫中心实例ID

Channel String xxx

座席所在音轨标示,目前不可用。

返回数据

名称 类型 示例值 描述
Code String OK

响应码

HttpStatusCode Integer 200

HTTP状态码

MediaDownloadParamList Array of MediaDownloadParam

获取到的录音文件下载url列表

MediaDownloadParam
FileName String 0960005656-03-27-22.mkv

录音文件名

SignatureUrl String “”urlDetail“”

录音文件下载url.

此url被两个引号包裹,例如:“”urlDetail“”,需要您自行处理一下,此url有效期为1小时。

Message String

响应信息

RequestId String 93CDC17E-3E8A-48F2-99E5-FA2E238DE8B4

请求ID

Success Boolean true

是否成功

示例

请求示例

http(s)://ccc.cn-shanghai.aliyuncs.com/?Action=DownloadAllTypeRecording
&ContactId=1272014011
&InstanceId=9cfad875-6260-4a53-ab6e-b13e3fb31f7d
&<公共请求参数>

正常返回示例

XML格式

<DownloadAllTypeRecordingResponse>
      <HttpStatusCode>200</HttpStatusCode>
      <RequestId>93CDC17E-3E8A-48F2-99E5-FA2E238DE8B4</RequestId>
      <MediaDownloadParamList>
            <MediaDownloadParam>
                  <SignatureUrl>http://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com/accrec/acc2626/190708/0960005656-03-27-22.mkv?Expires=1564059976&amp;OSSAccessKeyId=LTAIvKWEr4DoFSqz&amp;Signature=yKUiCPCBDUp0AizhGd8TPfrLYaY%3D</SignatureUrl>
                  <FileName>0960005656-03-27-22.mkv</FileName>
            </MediaDownloadParam>
            <MediaDownloadParam>
                  <SignatureUrl>http://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com/record/d278629c-c687-4aa3-b044-4fe9b012e7ef/156255644275000080333360.wav?Expires=1564059976&amp;OSSAccessKeyId=LTAIvKWEr4DoFSqz&amp;Signature=k%2BKaIlfQYCwG9%2FKTzYMsc%2Fn5Pcw%3D</SignatureUrl>
                  <FileName>156255644275000080333360.wav</FileName>
            </MediaDownloadParam>
      </MediaDownloadParamList>
      <Success>true</Success>
      <Code>OK</Code>
</DownloadAllTypeRecordingResponse>

JSON格式

{
    "HttpStatusCode":200,
    "RequestId":"93CDC17E-3E8A-48F2-99E5-FA2E238DE8B4",
    "MediaDownloadParamList":{
        "MediaDownloadParam":[
            {
                "SignatureUrl":"http://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com/accrec/acc2626/190708/0960005656-03-27-22.mkv?Expires=1564059976&OSSAccessKeyId=LTAIvKWEr4DoFSqz&Signature=yKUiCPCBDUp0AizhGd8TPfrLYaY%3D",
                "FileName":"0960005656-03-27-22.mkv"
            },
            {
                "SignatureUrl":"http://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com/record/d278629c-c687-4aa3-b044-4fe9b012e7ef/156255644275000080333360.wav?Expires=1564059976&OSSAccessKeyId=LTAIvKWEr4DoFSqz&Signature=k%2BKaIlfQYCwG9%2FKTzYMsc%2Fn5Pcw%3D",
                "FileName":"156255644275000080333360.wav"
            }
        ]
    },
    "Success":true,
    "Code":"OK"
}

错误码

访问错误中心查看更多错误码。