功能说明:此接口返回使用者拥有的全部已上架电台。通过电台ID可获取此电台下的已上架歌单。
GET
无
HFChannelRequest request = new HFChannelRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
try {
HFChannelResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
} catch (ApiException e) {
e.printStackTrace();
}
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=945592D703072EE62E31AE1BB9499E7A' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:Channel' -H 'X-HF-Timestamp:1595821951498' -H 'X-HF-Version:V4.1.1' -H 'X-HF-Nonce:FlfssSgkXQvVFHdwuPubGpqnOIohdYeO'
-X GET
{
"code": 10200,
"msg": "操作成功",
"data": [{
"groupId": "9MKIllS9BTa",
"groupName": "系统默认",
"coverUrl": ""
}],
"taskId": "a21d06fb96d3428db9bc6ce21bc98627"
}