请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/tb-service/get-foul-order-list";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("appKey", );
paraMap.put("pageNo", 1);
paraMap.put("pageSize", 10);
paraMap.put("span", 10);
paraMap.put("startTime", "2021-12-10");
String data = ApiClient.sendReq(url, appSecret, paraMap);
新版SDK调用示例:
public void DtkTbkScPunishOrderGetRequest() {
DtkApiClient client =
DtkApiClient.getInstance("appKey", "appSecret");
DtkTbkScPunishOrderGetRequest request = new DtkTbkScPunishOrderGetRequest();
request.setPageNo(1);
request.setPageSize(10);
request.setStartTime("2022-02-01 00:00:00");
DtkApiResponse<DtkTbkScPunishOrderGetResponse> response = client.execute(request);
System.out.println(JsonUtil.objectToJson(response));
}
{
"requestId": "bb0b061b1deddcfd722cf579b4d7672e",
"time": 1642731609620,
"code": 0,
"msg": "成功",
"data": {
"page_no": 1,
"page_size": 100,
"total_count": 97,
"results": [
{
"relation_id": 2688182037,
"settle_month": "202112",
"punish_status": "0",
"violation_type": "店铺淘宝客",
"tk_trade_create_time": "2021-12-19 10:09:03",
"tb_trade_id": "2345504148926622436",
"tk_adzone_id": "110710450164",
"tk_site_id": "1949600008",
"tk_pub_id": "314500175"
}
]
}
}