李经理:15682290831

通用服务端
视频编辑SDK
K歌SDK

功能说明

根据公司自己生成的订单id获取音乐地址

请求方法

GET

Header

以下请求参数列表仅列出了部分公共参数,完整公共参数列表见 公共参数列表

请求参数

请求示例

                HFClient client = new DefaultHFClient(url, appkey, secret);
HFOrderDetailRequest request = new HFOrderDetailRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setOrderId("1434556569145");
try {
   HFOrderDetailResponse response = client.execute(request);
   System.out.println(JSON.toJSON(response));
} catch (ApiException e) {
   e.printStackTrace();
}
              

响应数据

        curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=CFB597144B69AD59AE7C96D9C941E658' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:OrderDetail' -H 'X-HF-Timestamp:1595843788099' -H 'X-HF-Version:V4.1.1' -H 'X-HF-Nonce:nCBNLmIdOrpKXnOgQIVzUmPNEeAvfjnk' 
-X GET -d 'OrderId=143456789056569145' 
  {
    "code": 10200,
    "msg": "操作成功",
    "data": {
      "subject": "nYyple",
      "totalFee": 1556,
      "orderId": "143456789056569145",
      "deadline": "2020-09-15 17:45:52",
      "createTime": "2020-07-27 17:45:52",
      "music": [{
        "musicId": "B7B810AABADF",
        "fileUrl": "https://static-hifiveai-open.haifanwu.com/WaterMark/hifive/COPYRIGHT/B7B810AABADF/mp3_320/B7B810AABADF.mp3?sign=995434d9deefe20935c097f6dc649d1e&t=1595843789",
        "waveUrl": "https://static-hifiveai-open.haifanwu.com/wave/COPYRIGHT/B7B810AABADF/B7B810AABADF.json?sign=7c1da8ac391eb2874d1508c08ef3ddf8&t=1595843789",
        "dynamicLyricUrl": "",
        "staticLyricUrl": "",
        "expires": 1595844389047,
        "fileSize": 7339407
      }],
      "HForderId": "20200727174552RpHMqd1"
    },
    "taskId": "4172a517b6de43b8b7b008b69dff9eaf"
  }

      
  • 功能说明
  • 请求方法
  • Header
  • 请求参数
  • 请求示例
  • 响应数据