李经理:15682290831

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

功能说明

获取歌曲在歌单中是否存在。

请求方法

POST

Header

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

请求参数

请求示例

                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",
      }],
    },
}
      
  • 功能说明
  • 请求方法
  • Header
  • 请求参数
  • 请求示例
  • 响应数据