会员试听15秒副歌版本。
GET
HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFMemberTrialRequest request = new HFMemberTrialRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setVersion("V4.2.0");
request.setTimestamp(System.currentTimeMillis());request.setAccessToken("eyJ0eXAiOiJKV");
request.setMusicId("125F34E39EB0");
HFMemberTrialResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl - G https: //gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=AEFB48613AB9ABBE6DCD39E3CBC567E7' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MemberTrial' -H 'X-HF-Timestamp:1610589350415' -H 'X-HF-Version:V4.1.1' -H 'X-HF-Nonce:socGfiwBtoaalhMScsLufAnkWfNewECM'
-X GET - d 'MusicId=125F34E51B0D'
{
"code": 10200,
"msg": "操作成功",
"data": {
"expires": 1610590035863,
"musicId": "125F34E51B0D",
"fileSize": 241206,
"fileUrl": "https://static-hifiveai-open.haifanwu.com/trial/COPYRIGHT",
"waveUrl": "https://static-hifiveai-open.haifanwu.com/trial/wave/COPYRIGHT"
},
"taskId": "e2fbf469579458df"
}