虾米歌曲搜索5.0接口
alibaba.music.search.songs.get(虾米歌曲搜索5.0接口) ¥免费 不需要授权
HTTP请求地址: http://gw.api.taobao.com/router/rest
python 请求示例:
# -*- coding: utf-8 -*-
importtop.api
req=top.api.AlibabaMusicSearchSongsGetRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.limit=10
req.page="1"
req.key="刘德华"
try:
resp=req.getResponse()
print(resp)
exceptException,e:
print(e)
JAVA 请求示例:
TaobaoClient client =newDefaultTaobaoClient(url, appkey, secret);
AlibabaMusicSearchSongsGetRequest req =newAlibabaMusicSearchSongsGetRequest();
req.setLimit(10L);
req.setPage("1");
req.setKey("刘德华");
AlibabaMusicSearchSongsGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
返回的JSON示例: