请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/goods/singlePage/list-height-commission";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("cid", 12);
paraMap.put("pageId", "1");
paraMap.put("pageSize", 20);
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkHighCommissionSelectedRequest request = new DtkHighCommissionSelectedRequest();
request.setPageSize(20);
request.setPageId("1");
request.setCid(12);
request.setSort(1);
DtkApiResponse < DtkPageResponse < DtkHighCommissionSelectedResponse >> execute = client.execute(request);
{
"requestId": "b16a92f9d973410a960b8218e86f2be5",
"time": 1611287014894,
"code": 0,
"msg": "成功",
"data": {
"list": [
{
"id": 31738498,
"goodsId": "612415107604",
"itemLink": "https://detail.tmall.com/item.htm?id=612415107604",
"title": "【学玩礼包】编程猫4-12岁编程课提升儿童数理兑换赠百科儿童画报",
"dtitle": "编程猫4-12岁少儿在线学习编程课",
"originalPrice": 15.10,
"actualPrice": 5.10,
"shopType": 1,
"monthSales": 441,
"twoHoursSales": 0,
"dailySales": 5,
"commissionType": 3,
"desc": "【满5减4.8,赠百科儿童画报】锻炼儿童逻辑思维,提高专注力,助力学科学习;打造终身学习体系,孩子学编程,越学越聪明,学习更自信~",
"specialText": [
"下单立减",
"满5减4.8"
],
"couponReceiveNum": 95,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=4035220278&activityId=ded4de168868483c88ca49ddc418cc89",
"couponEndTime": "2021-01-25 23:59:59",
"couponStartTime": "2021-01-19 00:00:00",
"couponPrice": 10.0,
"couponConditions": "11",
"activityType": 1,
"createTime": "2021-01-18 17:01:14",
"mainPic": "https://img.alicdn.com/imgextra/i4/4035220278/O1CN01clYzxP1DvMkIB1xDj_!!4035220278.png",
"marketingMainPic": "https://sr.ffquan.cn/dtk_user_fd/20210118/c02krtiulrg8kvppj3v00.jpg",
"video": "",
"sellerId": "4035220278",
"cid": 7,
"tbcid": 124692004,
"discounts": 0.66,
"commissionRate": 0.90,
"couponTotalNum": 99905,
"activityStartTime": "",
"activityEndTime": "",
"shopName": "编程猫教育旗舰店",
"shopLevel": "10",
"descScore": 4.9,
"dsrScore": 4.87,
"dsrPercent": 1.33,
"shipScore": 4.85,
"shipPercent": 0.67,
"serviceScore": 4.84,
"servicePercent": 0.74,
"brand": -1,
"brandId": 1978867742,
"brandName": "",
"hotPush": 110,
"teamName": "粉够教主联盟",
"quanMLink": 0,
"hzQuanOver": 0,
"yunfeixian": 0,
"estimateAmount": 0,
"tchaoshi": 0,
"goldSellers": 0,
"freeshipRemoteDistrict": 1
}
],
"totalNum": 46,
"pageId": "1"
}
}