请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/collect-group";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("platform", 0);
paraMap.put("cid", );
paraMap.put("sort", 0);
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkCommodityMaterialsRequest request = new DtkCommodityMaterialsRequest();
request.setVersion("v1.0.0");
request.setId("1");
DtkApiResponse<List<DtkCommodityMaterialsResponse>> execute = client.execute(request);
{
"cache": false,
"code": 0,
"data": {
"list": [
{
"avgGoodsNum": "30-50个",
"circleTag": "素材优质#精选爆品",
"contentType": [],
"currentPushNum": 1145,
"historyPushNum": 79063,
"id": 1,
"mainGoodsPrice": "20-49.9",
"materialsTag": "优质(多为3图2文)",
"name": "官方精推采集1群",
"orderIssuanceTime": "08:00-20:30",
"platform": [
"淘宝"
],
"todaySellnum": 12018
]
},
"page": 1,
"total": 1
},
"msg": "成功",
"requestId": "fe264887f2c890ef244b046a44d2282b",
"time": 1724291077297077
}