李经理:15682290831

通用服务端
视频编辑SDK
K歌SDK

功能说明

通过会员歌单id获取歌曲分页列表。

请求方法

GET

Header

以下请求参数列表仅列出了部分公共参数,完整公共参数列表见 公共参数列表

请求参数

请求示例

                HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFMemberSheetMusicRequest request = new HFMemberSheetMusicRequest();
request.setMethod(HifiveRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setSheetId(26761L);
request.setPage(1);
request.setPageSize(10);
request.setAccessToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWNyZXRLZXkiOiIyMTg0ZDJhYTY4NzA0ZmI1YTkiLCJpc3MiOiJoaWZpdmUiLCJleHAiOjE2MjY1ODczMTQsImlhdCI6MTYyMjA5NDUxNH0.r_PeM-EMiUYV-SXr7IT2gZR9VHgPZPnI2T2Fc3N4yfw");
request.setTimestamp(System.currentTimeMillis());
HFMemberSheetMusicPostResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));

              

响应数据

        curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=3B529FFB03633E3D9C8CBC9287484F1B' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MemberSheetMusic' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X GET -d 'sheetId=26768&Page=1&PageSize=10' 
{
  "code": 200,
  "msg": "操作成功",
  "success": true,
  "data": {
    "records": [{
      "albumName": "打磨",
      "artist": [{
        "code": "CB10096E507B",
        "name": "沉香",
        "avatar": "https://static-hifiveai-open.haifanwu.com/artist/240*240/default.png?sign=b5e2933b668318e4c735f8f5b56b8345&t=1622097299"
      }],
      "author": [],
      "composer":  [{
        "code": "CB10096E507B",
        "name": "沉香",
        "avatar": "https://static-hifiveai-open.haifanwu.com/artist/240*240/default.png?sign=b5e2933b668318e4c735f8f5b56b8345&t=1622097299"
      }],
      "albumId": "C08407029ED2",
      "arranger": [],
      "version":  [{
        "auditionEnd": 26,
        "duration": 26,
        "musicId": "C3AC0F17E56B",
        "price": 48000,
        "name": "主版本",
        "free": 0,
        "majorVersion": true,
        "auditionBegin": 0
      }],
      "musicName": "打磨",
      "auditionEnd": 26,
      "cover": [{
        "size": "150*150",
        "url": "https://static-hifiveai-open.haifanwu.com/artwork/150*150/COPYRIGHT/C08407029ED2/C08407029ED2.jpg?sign=0f9792cc2be1cc3503bad68176b5e9e8&t=1622097299"
      }, {
        "size": "240*240",
        "url": "https://static-hifiveai-open.haifanwu.com/artwork/240*240/COPYRIGHT/C08407029ED2/C08407029ED2.jpg?sign=f9b007cb0e81f73f339a22f6eef776da&t=1622097299"
      }, {
        "size": "400*400",
        "url": "https://static-hifiveai-open.haifanwu.com/artwork/400*400/COPYRIGHT/C08407029ED2/C08407029ED2.jpg?sign=5cb0a35d782d45e0d27bc2b0a2edf8a8&t=1622097299"
      }],
      "duration": 26,
      "musicId": "C3AC0F17E56B",
      "intro": "",
      "tag": [],
      "bpm": 103,
      "auditionBegin": 0
    }],
    "meta": {
      "totalCount": 1,
      "currentPage": 1
    }
  }
}

      
  • 功能说明
  • 请求方法
  • Header
  • 请求参数
  • 请求示例
  • 响应数据