TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallTmypAiQueryexceptioneventsRequest req = new TmallTmypAiQueryexceptioneventsRequest();
TmallTmypAiQueryexceptioneventsRequest.LogisticsOrderExceptionEventBizRequest obj1 = new TmallTmypAiQueryexceptioneventsRequest.LogisticsOrderExceptionEventBizRequest();
obj1.setServiceType("RCS102");
obj1.setGmtCreateStart(StringUtils.parseDateTime("2025-07-12 00:00:00"));
obj1.setBizType(2L);
obj1.setEventTypeCodeList("");
obj1.setEventSellerProcessStatus("1");
obj1.setMonitorSetupTimeStart(StringUtils.parseDateTime("2025-12-12 00:00:00"));
obj1.setMonitorSetupTimeEnd(StringUtils.parseDateTime("2025-07-12 00:00:00"));
obj1.setSellerId(2332L);
obj1.setBizOptAnyMatchList("平台送货上门");
obj1.setEventWriteOffStatus("1");
obj1.setBizId("222");
obj1.setServiceSubType("OfficialLogistics-Consign");
obj1.setBizOptAllMatchList("平台送货上门");
req.setExceptionEventRequest(obj1);
TmallTmypAiQueryexceptioneventsRequest.AppInfo obj2 = new TmallTmypAiQueryexceptioneventsRequest.AppInfo();
obj2.setAppName("lingyang");
req.setAppInfo(obj2);
TmallTmypAiQueryexceptioneventsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallTmypAiQueryexceptioneventsRequest req = new TmallTmypAiQueryexceptioneventsRequest();
TmallTmypAiQueryexceptioneventsRequest.LogisticsOrderExceptionEventBizRequestDomain obj1 = new TmallTmypAiQueryexceptioneventsRequest.LogisticsOrderExceptionEventBizRequestDomain();
obj1.ServiceType = "RCS102";
obj1.GmtCreateStart = DateTime.Parse(2025-07-12 00:00:00");
obj1.BizType = 2L;
obj1.EventTypeCodeList = "";
obj1.EventSellerProcessStatus = "1";
obj1.MonitorSetupTimeStart = DateTime.Parse(2025-12-12 00:00:00");
obj1.MonitorSetupTimeEnd = DateTime.Parse(2025-07-12 00:00:00");
obj1.SellerId = 2332L;
obj1.BizOptAnyMatchList = "平台送货上门";
obj1.EventWriteOffStatus = "1";
obj1.BizId = "222";
obj1.ServiceSubType = "OfficialLogistics-Consign";
obj1.BizOptAllMatchList = "平台送货上门";
req.ExceptionEventRequest_ = obj1;
TmallTmypAiQueryexceptioneventsRequest.AppInfoDomain obj2 = new TmallTmypAiQueryexceptioneventsRequest.AppInfoDomain();
obj2.AppName = "lingyang";
req.AppInfo_ = obj2;
TmallTmypAiQueryexceptioneventsResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallTmypAiQueryexceptioneventsRequest;
$exception_event_request = new LogisticsOrderExceptionEventBizRequest;
$exception_event_request->service_type="RCS102";
$exception_event_request->gmt_create_start="2025-07-12 00:00:00";
$exception_event_request->biz_type="2";
$exception_event_request->event_type_code_list="[]";
$exception_event_request->event_seller_process_status="[1]";
$exception_event_request->monitor_setup_time_start="2025-12-12 00:00:00";
$exception_event_request->monitor_setup_time_end="2025-07-12 00:00:00";
$exception_event_request->seller_id="2332";
$exception_event_request->biz_opt_any_match_list="[平台送货上门]";
$exception_event_request->event_write_off_status="1";
$exception_event_request->biz_id="222";
$exception_event_request->service_sub_type="[OfficialLogistics-Consign]";
$exception_event_request->biz_opt_all_match_list="[平台送货上门]";
$req->setExceptionEventRequest(json_encode($exception_event_request));
$app_info = new AppInfo;
$app_info->app_name="lingyang";
$req->setAppInfo(json_encode($app_info));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=tmall.tmyp.ai.queryexceptionevents' \
-d 'partner_id=apidoc' \
-d 'sign=3FC294D73DB11758FBFE82CFD4642242' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+12%3A01%3A17' \
-d 'v=2.0' \
-d 'app_info=null' \
-d 'exception_event_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallTmypAiQueryexceptioneventsRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.exception_event_request="数据结构示例JSON格式"
req.app_info="数据结构示例JSON格式"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"tmall.tmyp.ai.queryexceptionevents");
add_param(pRequest,"exception_event_request","数据结构JSON示例");
add_param(pRequest,"app_info","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.tmyp.ai.queryexceptionevents', {
'exception_event_request':'数据结构JSON示例',
'app_info':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})