获取歌曲在歌单中是否存在。
POST
HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFMemberMusicInSheetRequest request = new HFMemberMusicInSheetRequest();
request.setMethod(HFRequest.METHOD_POST);
request.setSheetId(11577);
request.setMusicId("B7B810B2912F");
request.setAccessToken("eyJ0eXAiOiJKV1=");
request.setClientId("hf2y7jk19a56qetq05");
request.setTimestamp(System.currentTimeMillis());
request.setAccessToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWNyZXRLZXkiOiI2ZGJhMTg2ZjBiMDY0MzM0YmYiLCJpc3MiOiJoaWZpdmUiLCJleHAiOjE2MjUyODM1MTcsImlhdCI6MTYyMDc5MDcxN30.nFcUAF5X3WKaRU7ngt9iRYQhrC7ssKoj0hVuroCjO5c");
HFMemberSheetMusicExistResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=C991589B12A13F25163CFECA7447FE9A' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MemberMusicInSheet' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X POST -d 'sheetId=26782'
{
"code": 200,
"msg": "操作成功",
"data": {
"record": [{
"musicId": "1D65214CB60",
"exist": "0",
}],
},
}