获取该会员下所有歌单列表,包含我的喜欢、当前播放、自定义歌单(此版本暂时不支持会员自建歌单),创建会员时默认已拥有我的喜欢、当前播放这两个歌单。
GET
HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFOpenMemberSheetRequest request = new HFOpenMemberSheetRequest();
request.setMethod(HifiveRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setMemberOutId("test_hifive_123");
request.setTimestamp(System.currentTimeMillis());
request.setPage(1);
request.setPageSize(10);
request.setVersion("V4.2.0");
request.setAccessToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWNyZXRLZXkiOiJlM2RlOGRlMzY2ODM0YmYwODYiLCJpc3MiOiJoaWZpdmUiLCJleHAiOjE2MjUzODIwMjgsImlhdCI6MTYyMDg4OTIyOH0.sl23Uu0qKjoftlFR2pY-Ei0UfINQoZ8XG6DGfO-hKrY");
HFMemberSheetPostResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=4FF829ACEF29AC7A2C359E1560CB0DF7' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MemberSheet' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X GET -d 'MemberOutId=test_hifive_123&Page=1&PageSize=10'
{
"code": 200,
"msg": "操作成功",
"success": true,
"data": {
"records": [{
"sheetName": "正在播放",
"createTime": "2021-05-27 13:48:34",
"sheetId": 26759,
"type": 4
},
{
"sheetName": "我的喜欢",
"createTime": "2021-05-27 13:48:34",
"sheetId": 26760,
"type": 2
},
{
"sheetName": "中国风",
"createTime": "2021-05-27 13:57:51",
"sheetId": 26761,
"type": 3
}
],
"meta": {
"totalCount": 3,
"currentPage": 1
}
}
}