TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaKongurHandleresultPushhandleresultRequest req = new AlibabaKongurHandleresultPushhandleresultRequest();
req.setKongurAppKey("xxxxx");
AlibabaKongurHandleresultPushhandleresultRequest.HandleResultVo obj1 = new AlibabaKongurHandleresultPushhandleresultRequest.HandleResultVo();
obj1.setSupplierCode("xxxxx");
obj1.setEntrustId(3L);
obj1.setSuitId(3L);
obj1.setCallingTime(StringUtils.parseDateTime("2012-12-12 12:12:12"));
obj1.setIsSuccess("xxxxx");
obj1.setBusinessId("xxxxx");
obj1.setBusinessType("xxxxx");
List<AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDo> list3 = new ArrayList<AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDo>();
AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDo obj4 = new AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDo();
list3.add(obj4);
obj4.setBusinessId("xxxxx");
obj4.setBizType("xxxxx");
obj4.setFieldNameEn("xxxxx");
obj4.setReturnErrorCode("xxxxx");
obj4.setErrorMsg("xxxxx");
obj1.setFailReason(list3);
req.setHandleResultVo(obj1);
AlibabaKongurHandleresultPushhandleresultResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaKongurHandleresultPushhandleresultRequest req = new AlibabaKongurHandleresultPushhandleresultRequest();
req.KongurAppKey = "xxxxx";
AlibabaKongurHandleresultPushhandleresultRequest.HandleResultVoDomain obj1 = new AlibabaKongurHandleresultPushhandleresultRequest.HandleResultVoDomain();
obj1.SupplierCode = "xxxxx";
obj1.EntrustId = 3L;
obj1.SuitId = 3L;
obj1.CallingTime = DateTime.Parse(2012-12-12 12:12:12");
obj1.IsSuccess = "xxxxx";
obj1.BusinessId = "xxxxx";
obj1.BusinessType = "xxxxx";
List<AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDoDomain> list3 = new List<AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDoDomain>();
AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDoDomain obj4 = new AlibabaKongurHandleresultPushhandleresultRequest.ResultDataDoDomain();
list3.Add(obj4);
obj4.BusinessId = "xxxxx";
obj4.BizType = "xxxxx";
obj4.FieldNameEn = "xxxxx";
obj4.ReturnErrorCode = "xxxxx";
obj4.ErrorMsg = "xxxxx";
obj1.FailReason= list3;
req.HandleResultVo_ = obj1;
AlibabaKongurHandleresultPushhandleresultResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaKongurHandleresultPushhandleresultRequest;
$req->setKongurAppKey("xxxxx");
$handle_result_vo = new HandleResultVo;
$handle_result_vo->supplier_code="xxxxx";
$handle_result_vo->entrust_id="3";
$handle_result_vo->suit_id="3";
$handle_result_vo->calling_time="2012-12-12 12:12:12";
$handle_result_vo->is_success="xxxxx";
$handle_result_vo->business_id="xxxxx";
$handle_result_vo->business_type="xxxxx";
$fail_reason = new ResultDataDo;
$fail_reason->business_id="xxxxx";
$fail_reason->biz_type="xxxxx";
$fail_reason->field_name_en="xxxxx";
$fail_reason->return_error_code="xxxxx";
$fail_reason->error_msg="xxxxx";
$handle_result_vo->fail_reason = $fail_reason;
$req->setHandleResultVo(json_encode($handle_result_vo));
$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=alibaba.kongur.handleresult.pushhandleresult' \
-d 'partner_id=apidoc' \
-d 'sign=B1087FF1EA70E0A156A0A8826F90CF05' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-14+20%3A06%3A34' \
-d 'v=2.0' \
-d 'handle_result_vo=null' \
-d 'kongur_app_key=xxxxx'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaKongurHandleresultPushhandleresultRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.kongur_app_key="xxxxx"
req.handle_result_vo=""
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,"alibaba.kongur.handleresult.pushhandleresult");
add_param(pRequest,"kongur_app_key","xxxxx");
add_param(pRequest,"handle_result_vo","数据结构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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.kongur.handleresult.pushhandleresult', {
'kongur_app_key':'xxxxx',
'handle_result_vo':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})