#### 接口路徑: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>