您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页测试代码片

测试代码片

来源:化拓教育网

测试一下代码片,英文状态下输入三个‘`’,即可实现代码功能。

# -*- coding: utf-8 -*-

import top.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)

except Exception as 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());

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务