将音乐添加到指定会员歌单。
POST
HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFOpenMemberSheetMusicAddRequest request = new HFOpenMemberSheetMusicAddRequest();
request.setMethod(HifiveRequest.METHOD_POST);
request.setClientId("hf2y7jk19a56qetq05");
request.setMusicId("C3AC0F17E56B");
request.setSheetId(25254L);
request.setVersion("V4.2.0");
request.setTimestamp(System.currentTimeMillis());request.setAccessToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWNyZXRLZXkiOiJlM2RlOGRlMzY2ODM0YmYwODYiLCJpc3MiOiJoaWZpdmUiLCJleHAiOjE2MjUzODIwMjgsImlhdCI6MTYyMDg4OTIyOH0.sl23Uu0qKjoftlFR2pY-Ei0UfINQoZ8XG6DGfO-hKrY");
HFSheetMusicAddPostResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=2CBC2824C7B7A6D48D3F5DBB6D082B3C' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:AddMemberSheetMusic' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X POST -d 'sheetId=26768&musicId=C3AC0F17E56B'
{
"code": 200,
"msg": "操作成功",
"success": true
}