6.2获得录音播放源接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>获得录音播放源接口
直接拼接获取,拼接内容如下
登录地址:<a href="https://xxxx.com">https://xxxx.com</a>
接口:/api/cdrDownload
公共参数:api_key+user_sn
参数:recordpath+recordfile(通话回调或者6.1获取通话流水获取)</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{BaseUrl}/api/cdrDownload</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>user_sn</td>
<td>是</td>
<td>string</td>
<td>公共参数</td>
</tr>
<tr>
<td>api_key</td>
<td>是</td>
<td>string</td>
<td>公共参数</td>
</tr>
<tr>
<td>recordpath</td>
<td>是</td>
<td>string</td>
<td>录音目录,通过回调或接口6.1获取</td>
</tr>
<tr>
<td>recordfile</td>
<td>是</td>
<td>string</td>
<td>录音文件名,通过回调或接口6.1获取 (录音命名可在系统设置调整,可选格式“完整手机号码”或“显示尾号”)</td>
</tr>
</tbody>
</table>
<p><strong>拼接示例</strong>
<a href="https://xxxx.com/api/cdrDownload?user_sn=SYSUSER%7Cb3397882e26ba9e7fb8f01f1af345bde&api_key=ACjhLRSp&recordpath=/mnt/record/20241022/0935/20241022093538_zzh_zzh1_ec0fdf06-9015-11ef-b667-d39081f6a486_0637.wav">https://xxxx.com/api/cdrDownload?user_sn=SYSUSER%7Cb3397882e26ba9e7fb8f01f1af345bde&api_key=ACjhLRSp&recordpath=/mnt/record/20241022/0935/20241022093538_zzh_zzh1_ec0fdf06-9015-11ef-b667-d39081f6a486_0637.wav</a></p>
<p><strong>返回示例</strong></p>
<ul>
<li>
<p>直接下载文件,可用于html的媒体播放标签。</p>
<p><strong>备注</strong> </p>
</li>
<li>
<p>需要把公共参数也传过来。get方式接口url是拼装json数据进行加密,加密示例:(注意:要对反斜杆进行专义,json示例的参数顺序必须跟get参数的顺序一致,否则返回100001)</p>
<pre><code>{
&quot;user_sn&quot;: &quot;xxxx&quot;,
&quot;api_key&quot;: &quot;xxxx&quot;,
&quot;recordpath&quot;: &quot;/mnt/record&quot;,
&quot;recordfile&quot;: &quot;/mnt/record/20241022/0935/20241022093538_zzh_zzh1_ec0fdf06-9015-11ef-b667-d39081f6a486_0637.wav&quot;
}</code></pre>
</li>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>