李经理: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=9652A7AD1EE81FC4920FAAD2F85F9A4C' -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.2.0' -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": [{
        "versions": "[]",
        "musicId": "1D65214CB60",
        "musicName": "I'd Go Anywhere With You (a)",
        "albumId": "69",
        "albumName": "Acoustic Sunshine",
        "duration": 198,
        "intro": "",
        "bpm": 100,
        "auditionBegin": 0,
        "auditionEnd": 0,
        "tag": [{
          "tagId": 959,
          "tagName": "有人声",
          "child": [{
            "tagId": 963,
            "tagName": "With Vocals",
            "child": []
          }]
        }, {
          "tagId": 964,
          "tagName": "女声",
          "child": [{
            "tagId": 965,
            "tagName": "Female",
            "child": []
          }]
          }]
        }],
        "cover": [{
          "url": "https://static-hifiveai-open.haifanwu.com/artwork/artwork_07.png",
          "size": ""
        }],
        "artist": [],
        "author": [],
        "composer": [{
          "name": "Vasco",
          "code": "7866EE1E",
          "avatar": "https://static-hifiveai-open.haifanwu.com/artist/default.png?sign=f8ba91b1643a9325a0e9277d00ed1e88&t=1595822527"
        }],
        "arranger": [],
        "waveUrl": "https://static-hifiveai-open.haifanwu.com/wave/COPYRIGHT/1D652157FC9/1D652157FC9.json?sign=3b749cc63daee0f7f5809c070356e011&t=1660702625",
        "version": [{
          "name": "主版本",
          "musicId": "1D65214CB60",
          "free": 1,
          "price": 0,
          "majorVersion": true,
          "duration": 198,
          "auditionBegin": 0,
          "auditionEnd": 0
        }]
      }],
      "HForderId": "20200727174552RpHMqd1"
    },
    "taskId": "4172a517b6de43b8b7b008b69dff9eaf"
  }

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