更新时间:2022-01-07 14:31:31
Obtain the audio playback code through the audio ID.
Request method | POST/GET |
---|---|
Interface Address | [http/https]: //api.cloudv.haplat.net/vod/audioManage/getPublishCode |
Parameter | Type | Required | Remarks |
---|---|---|---|
id | string | Yes | Audio file ID |
For common return results, please refer to the Return Result.
Data structure of the data parameter returned when the return result is successful
Parameter | Type | Remarks |
---|---|---|
url | string | Audio URL |
Input example
curl -X POST
'http://localhost:8080/vod/audioManage/getPublishCode
-H 'content-type: application/x-www-form-urlencoded; charset=utf-8'
-H "Host: api.cloudv.haplat.net"
<公共的头部参数>
<自定义的头部参数>
-d 'id=f907c75701631000d728f96a00000000'
Notes: For the “public parameter” in the example, please refer to Common Parameters.
Output example
{
"code": 200,
"data": {
"url": "http://timestamp.ovptest.haplat.net/audio/201806/f907c757016310009781c35e00000000_1528891426/f907c757016310009781c35e00000000.MP3?wsSecret=3e982d8bc1e681c30aa1365c08b9da38&wsTime=1528932226"
},
"message": "操作成功"
}
The interface has no error codes that are related to interface service logic, the generic error code can be found at Return Result.