TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAliqinAxbVendorPushCallEventRequest req = new AlibabaAliqinAxbVendorPushCallEventRequest();
AlibabaAliqinAxbVendorPushCallEventRequest.EventCallRequest obj1 = new AlibabaAliqinAxbVendorPushCallEventRequest.EventCallRequest();
obj1.setCallId("435cf14f7f077e52");
obj1.setCalledNo("13500000000");
obj1.setCallNo("13519000000");
obj1.setExtensionNo("1234");
obj1.setEventType("ALERTING");
obj1.setSubsId("123");
obj1.setVendorKey("CMCC");
obj1.setSecretNo("17010000000");
obj1.setEventTime(StringUtils.parseDateTime("2018-01-01 12:00:00"));
obj1.setCalledDisplayNo("17010000000");
obj1.setCallTime(StringUtils.parseDateTime("2018-01-01 12:00:00"));
obj1.setCallForwardingNo("17010000000");
obj1.setCallForwardingReason("0");
req.setEventCallRequest(obj1);
AlibabaAliqinAxbVendorPushCallEventResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAliqinAxbVendorPushCallEventRequest req = new AlibabaAliqinAxbVendorPushCallEventRequest();
AlibabaAliqinAxbVendorPushCallEventRequest.EventCallRequestDomain obj1 = new AlibabaAliqinAxbVendorPushCallEventRequest.EventCallRequestDomain();
obj1.CallId = "435cf14f7f077e52";
obj1.CalledNo = "13500000000";
obj1.CallNo = "13519000000";
obj1.ExtensionNo = "1234";
obj1.EventType = "ALERTING";
obj1.SubsId = "123";
obj1.VendorKey = "CMCC";
obj1.SecretNo = "17010000000";
obj1.EventTime = DateTime.Parse(2018-01-01 12:00:00");
obj1.CalledDisplayNo = "17010000000";
obj1.CallTime = DateTime.Parse(2018-01-01 12:00:00");
obj1.CallForwardingNo = "17010000000";
obj1.CallForwardingReason = "0";
req.EventCallRequest_ = obj1;
AlibabaAliqinAxbVendorPushCallEventResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAliqinAxbVendorPushCallEventRequest;
$event_call_request = new EventCallRequest;
$event_call_request->call_id="435cf14f7f077e52";
$event_call_request->called_no="13500000000";
$event_call_request->call_no="13519000000";
$event_call_request->extension_no="1234";
$event_call_request->event_type="ALERTING";
$event_call_request->subs_id="123";
$event_call_request->vendor_key="CMCC";
$event_call_request->secret_no="17010000000";
$event_call_request->event_time="2018-01-01 12:00:00";
$event_call_request->called_display_no="17010000000";
$event_call_request->call_time="2018-01-01 12:00:00";
$event_call_request->call_forwarding_no="17010000000";
$event_call_request->call_forwarding_reason="0";
$req->setEventCallRequest(json_encode($event_call_request));
$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.aliqin.axb.vendor.push.call.event' \
-d 'partner_id=apidoc' \
-d 'sign=504D5F2C34B803C68E711BA970C40061' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-08+02%3A59%3A24' \
-d 'v=2.0' \
-d 'event_call_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAliqinAxbVendorPushCallEventRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.event_call_request="数据结构示例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,"alibaba.aliqin.axb.vendor.push.call.event");
add_param(pRequest,"event_call_request","数据结构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.aliqin.axb.vendor.push.call.event', {
'event_call_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})