请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/goods/friends-circle-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.3.0");
paraMap.put("appKey", appKey);
paraMap.put("pageId", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkFriendsCircleListRequest request = new DtkFriendsCircleListRequest();
request.setPageId("1");
request.setPageSize(100);
request.setSort("0");
request.setCid("6");
request.setSubcid("116908");
request.setPre(1);
request.setFreeshipRemoteDistrict(1);
request.setGoodsId("586504728742");
DtkApiResponse < DtkPageResponse < DtkFriendsCircleListResponse >> execute = client.execute(request);
{
"time":1554711897417,
"code":0,
"msg":"成功",
"data":{
"list":[
{
quanMLink: 0,
hzQuanOver: 0,
estimateAmount: 0,
circleText: "高弹更显瘦,不闷热更透气多种花色可选, 清凉冰丝面料袖套,轻薄透气,抗紫外线、吸湿排汗强, 穿上这个防晒冰袖,肌肤上的防晒问题就交给它了",
freeshipRemoteDistrict: 0,
id: 34064056,
goodsId: "632350772402",
title: "买一送一冰袖 防晒透气 男女款情侣手臂袖百搭防止外线开车冰丝护",
dtitle: "冰袖防晒透气男女款情侣手臂袖百搭防",
originalPrice: 34.99,
actualPrice: 14.99,
monthSales: 50000,
twoHoursSales: 0,
dailySales: 0,
commissionType: 3,
desc: "高弹更显瘦,不闷热更透气多种花色可选,清凉冰丝面料袖套,轻薄透气,抗紫外线、吸湿排汗强,穿上这个防晒冰袖,肌肤上的防晒问题就交给它了",
couponReceiveNum: 0,
couponLink: "https://uland.taobao.com/quan/detail?sellerId=2208781401384&activityId=756abc3e6bfe499a8bdcf694e636ff14",
couponEndTime: "2021-06-15 23:59:59",
couponStartTime: "2021-06-08 00:00:00",
couponPrice: 20,
couponConditions: "25",
createTime: "2021-06-09 02:04:04",
mainPic: "https://img.alicdn.com/imgextra/i3/2209485985073/O1CN01vHV7gA1nLTv5EqgLW_!!2209485985073.jpg",
marketingMainPic: "https://img.alicdn.com/imgextra/i3/2209485985073/O1CN01vHV7gA1nLTv5EqgLW_!!2209485985073.jpg",
cid: 6,
discounts: 0.57,
commissionRate: 20,
couponTotalNum: 100000,
shopName: "tb9285630184的小店",
brand: 0,
brandId: 29534,
brandName: "other/其他",
itemLink: "https://detail.tmall.com/item.htm?id=632350772402",
shopType: 0,
subcid: [],
shipaiPic: "",
shangchaoPic: "",
tbcid: 127692011
}
],
"totalNum":16499,
"pageId":"76679471048598b0"
}
}
{
"msg":"服务器错误",
"code":-1,
"time":1554365022200
}请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/goods/friends-circle-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.3.0");
paraMap.put("appKey", appKey);
paraMap.put("pageId", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);
{
"time":1554711897417,
"code":0,
"msg":"成功",
"data":{
"list":[
{
"quanMLink": 0,
"hzQuanOver": 0,
"estimateAmount": -1,
"circleText": "%E7%A5%9E%E4%BB%99%E8%B4%B5%E5%A6%87%E8%86%8F%EF%BC%8C%E4%BD%A0%E9%80%89%E5%AF%B9%E4%BA%86%E5%90%97%E2%9C%94%0A%E7%83%9F%E9%85%B0%E8%83%BA%F0%9F%92%AB%E7%84%95%E9%A2%9C%E5%AE%AB%E5%BB%B7%E8%B4%B5%E5%A6%87%E8%86%8F%0A%F0%9F%94%B9%E6%B7%A1%E5%8C%96%E7%BB%86%E7%BA%B9%EF%BC%8C%E8%A1%A5%E6%B0%B4%E4%BF%9D%E6%B9%BF%EF%BC%8C%E6%8F%90%E6%8B%89%E7%B4%A7%E8%87%B4%0A%E4%B8%80%E6%8A%B9%E9%80%8F%E4%BA%AE%EF%BC%8C%E5%94%A4%E9%86%92%E5%AB%A9%E7%99%BD%E7%BE%8E%E8%82%8C%F0%9F%98%8E%0A2%E4%BB%B6%EF%BF%A538%E5%85%83%F0%9F%92%B0%E5%81%9A%E5%86%BB%E9%BE%84%E5%A5%B3%E7%A5%9E%F0%9F%99%8B%0A",
"freeshipRemoteDistrict": 0,
"id": 26389326,
"goodsId": "598089055725",
"title": "贵妇膏旗舰店正品遮瑕面霜补水保湿懒人素颜霜女男士化妆品护肤品",
"dtitle": "【拍2件】烟酰胺焕颜宫廷贵妇膏",
"originalPrice": 108.0,
"actualPrice": 38.0,
"monthSales": 215967,
"twoHoursSales": 66,
"dailySales": 10000,
"commissionType": 3,
"desc": "现货【拍2件哦!第二件0元!】镇店爆款,薇雅强烈推荐,一抹即白!富含烟酰胺和多种维生素精华,上妆清爽不油腻,有效滋润保湿~提亮肤色!改善细纹,滋养修补,女神冻龄的秘密【过敏包退】",
"couponReceiveNum": 0,
"couponLink": "https://uland.taobao.com/quan/detail?sellerId=2659739949&activityId=30a0c3ed23de42fe87893065a972abf9",
"couponEndTime": "2020-05-23 23:59:59",
"couponStartTime": "2020-05-17 00:00:00",
"couponPrice": 70.0,
"couponConditions": "108",
"createTime": "2020-05-16 23:34:24",
"mainPic": "https://img.alicdn.com/imgextra/i3/2794538083/O1CN01zsUX7U29a3whvdszb_!!2794538083.jpg",
"marketingMainPic": "https://sr.ffquan.cn/dtk_user_fd/20200510/bqrdpfiulrgasv1earcg0.jpg",
"cid": 3,
"discounts": 0.35,
"commissionRate": 60.0,
"couponTotalNum": 100000,
"shopName": "蓝尼芳可旗舰店",
"brand": 0,
"brandId": 1121198678,
"brandName": "",
"itemLink": "https://detail.tmall.com/item.htm?id=598089055725",
"detailPics": "",
"shopType": 1,
"subcid": [111746],
"tbcid": 50011980
}
],
"totalNum":16499,
"pageId":"76679471048598b0"
}
}
{
"msg":"服务器错误",
"code":-1,
"time":1554365022200
}