根据公司自己生成的订单id获取音乐地址
GET
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"
}