调用GetRecordOssUploadParam获取录音上传参数。

调试

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

请求参数

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

系统规定参数。取值:GetRecordOssUploadParam

FileName String 155887678809600080315543.wav

录音文件名称

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

呼叫中心实例ID

AccessKeyId String xxx

您的AccessKey ID

返回数据

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

响应码

Dir String record/d278629c-c687-4aa3-b044-4fe9b012e7ef/1059803544828509

路径

Expires String 1559201845

过期时间

Host String https://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com

上传地址

HttpStatusCode Integer 200

HTTP状态码

Message String

响应信息

OssAccessKeyId String LTAIvKWEr4Doxxxx

OSS的AK

OssFileName String gvDE-1KxEtOj_1059803544828509_20190530143725.wav

录音文件名

Policy String eyJleHBpcmF0aW9uIjoiMjAxOS0wNS0zMFQwNzozNzoyNS42NDRaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsNTI0Mjg4MF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZWNvcmQvZDI3ODYyOWMtYzY4Ny00YWEzLWIwNDQtNGZ

策略

RequestId String 9F766284-F103-4298-8EC5-19F9F9BE5522

请求ID

Signature String KUwzPbvaHaljLOdrKyrYE+S2gWs=

签名

Success Boolean true

是否成功

示例

请求示例


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

正常返回示例

XML 格式

<GetRecordOssUploadParamResponse>
      <HttpStatusCode>200</HttpStatusCode>
      <Dir>record/d278629c-c687-4aa3-b044-4fe9b012e7ef/1059803544828509</Dir>
      <OssFileName>gvDE-1KxEtOj_1059803544828509_20190530143725.wav</OssFileName>
      <Host>https://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com</Host>
      <Policy>eyJleHBpcmF0aW9uIjoiMjAxOS0wNS0zMFQwNzozNzoyNS42NDRaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsNTI0Mjg4MF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZWNvcmQvZDI3ODYyOWMtYzY4Ny00YWEzLWIwNDQtNGZlOWIwMTJlN2VmLzEwNTk4MDM1NDQ4Mjg1MDkiXV19</Policy>
      <Expires>1559201845</Expires>
      <RequestId>9F766284-F103-4298-8EC5-19F9F9BE5522</RequestId>
      <Success>true</Success>
      <OssAccessKeyId>LTAIvKWEr4Dxxxx</OssAccessKeyId>
      <Code>OK</Code>
      <Signature>KUwzPbvaHaljLOdrKyrYE+S2gWs=</Signature>
</GetRecordOssUploadParamResponse>

JSON 格式

{
	"HttpStatusCode":200,
	"Dir":"record/d278629c-c687-4aa3-b044-4fe9b012e7ef/1059803544828509",
	"Host":"https://cloudcallcenter-online.oss-cn-shanghai.aliyuncs.com",
	"OssFileName":"gvDE-1KxEtOj_1059803544828509_20190530143725.wav",
	"Policy":"eyJleHBpcmF0aW9uIjoiMjAxOS0wNS0zMFQwNzozNzoyNS42NDRaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsNTI0Mjg4MF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCJyZWNvcmQvZDI3ODYyOWMtYzY4Ny00YWEzLWIwNDQtNGZlOWIwMTJlN2VmLzEwNTk4MDM1NDQ4Mjg1MDkiXV19",
	"RequestId":"9F766284-F103-4298-8EC5-19F9F9BE5522",
	"Expires":"1559201845",
	"Success":true,
	"Code":"OK",
	"OssAccessKeyId":"LTAIvKWEr4Dxxxx",
	"Signature":"KUwzPbvaHaljLOdrKyrYE+S2gWs="
}

错误码

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