文档中心 Cloud VoD API (OId Version) Get Audio Playback Code

Get Audio Playback Code

更新时间:2022-01-07 14:31:31

Description

Obtain the audio playback code through the audio ID.

Request Description

Request method POST/GET
Interface Address [http/https]: //api.cloudv.haplat.net/vod/audioManage/getPublishCode

Request Parameters

Parameter Type Required Remarks
id string Yes Audio file ID

Return parameter

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

Example

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": "操作成功"
}


Error code

The interface has no error codes that are related to interface service logic, the generic error code can be found at Return Result.

本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!