2.6获取音频播放链接

#### 接口路径:https://dev.lingju.ai/httpapi/audioUrl.do <table style="width:100%"> <tbody> <tr height="28" style="font-weight:bold;"> <td height="28" width="130px" >名称</td> <td colspan="3" >获取音频播放链接</td> </tr> <tr height="28" style="font-weight:bold;"> <td height="28" >接口路径</td> <td colspan="3" >https://dev.lingju.ai/httpapi/audioUrl.do</td> </tr> <tr height="28" style="font-weight:bold;"> <td height="28" >请求方式</td> <td colspan="3" >post</td> </tr> </tbody> </table> #### http post请求示例: ~~~ post https://dev.lingju.ai/httpapi/audioUrl.do json格式串行化post上传,注意请求的header需添加 'Content-Type':'application/json;charset=UTF-8' { "accessToken":"xxxxxxxxxxxxxxxxxxxxxx", "type":"xxxxxx", "id":“xxxxxx" } ~~~ #### 请求参数说明: <table style="width:100%"> <thead> <tr height="28"> <th width="130px">参数</th> <th width="100px">数据类型</th> <th width="130px">可需</th> <th colspan="2" >描述</th> </tr> </thead> <tbody> <tr height="23" style="height:17.25pt"> <td height="23" >accessToken</td> <td >String</td> <td>必填</td> <td colspan="2" >分配给开发者的专属appkey,请妥善保管</td> </tr> <tr > <td>type</td> <td>String</td> <td>必填</td> <td colspan="2">音频类型:(取值参考下面音频类型表)</td> </tr> <tr> <td>id</td> <td>String</td> <td>必填</td> <td colspan="2"> 音频id</td> </tr> </tbody> </table> <table style="width:100%"> <thead> <tr height="28"> <th width="130px">音频类型</th> <th colspan="2" >取值</th> </tr> </thead> <tbody> <tr height="23" style="height:17.25pt"> <td height="23" >新闻</td> <td colspan="2" >NEWS</td> </tr> <tr > <td>音乐</td> <td colspan="2">MUSIC</td> </tr> <tr> <td>……</td> <td colspan="2">……</td> </tr> </tbody> </table> #### 接口返回JSON示例: ~~~ { "status":"0", "url":"xxxxxxxxxxxx" } ~~~ #### 接口返回说明: ~~~ Content-Type:application/json;charset=UTF-8 ~~~ <table style="width:100%"> <thead> <tr height="28" > <th height="28" width="130px">属性名</th> <th width="100px">数据类型</th> <th>描述</th> </tr> </thead> <tbody> <tr height="23"> <td height="23" >status</td> <td>int</td> <td>状态码,0=成功,其它值则为错误码,请参考错误码表</td> </tr> <tr height="23"> <td height="23" >description</td> <td >String</td> <td>通常为空,出错时会有错误信息</td> </tr> <tr > <td>url</td> <td >String</td> <td>音频链接</td> </tr> </tbody></table>