此接口可以获取歌曲的基础配置信息包括:歌曲标签列表、歌曲价格列表,可以在组合搜索中使用
GET
无
HFClient client = new DefaultHFClient(url, appkey, secret);
HFMusicConfigRequest request = new HFMusicConfigRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
HFMusicConfigResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=4F23B710804C9CB67A6C7FD867220753' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MusicConfig' -H 'X-HF-Timestamp:1595822760834' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:XHBInQMiPWHrpjBuHEYpktyIsKUsMrfE'
-X GET
{
"code": 10200,
"msg": "操作成功",
"data": {
"tagList": [{
"tagId": 6127,
"tagName": "二级标签",
"child": [{
"tagId": 6128,
"tagName": "三级标签",
"child": [],
}],
}, {
"tagId": 6129,
"tagName": "人类",
"child": [{
"tagId": 6130,
"tagName": "老人",
"child": [],
}],
}, {
"tagId": 6132,
"tagName": "狗狗",
"child": [],
}]
"prices": [100, 200]
},
"levelList": [{
"key": MUSIC_EFFECT,
"name": "音效",
"child": [{
}],
}]
"taskId": "ay02orfvtk2t7wrz6zvfxx8lte8kshqa"
}