TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAmapCallOutcallSyncRequest req = new AlibabaAmapCallOutcallSyncRequest();
AlibabaAmapCallOutcallSyncRequest.CallRecordNotifyRequest obj1 = new AlibabaAmapCallOutcallSyncRequest.CallRecordNotifyRequest();
obj1.setCallRecordId("20230210880000000000000000520014");
obj1.setEventTime("2023-05-30 23:28:56");
obj1.setHandleDuration(55L);
obj1.setRecFileUrl("https://xxxxxxxxxxx.wav");
obj1.setIsvCallRecordId("20230530000000001");
obj1.setEventType("HANGUP");
obj1.setDialingTime("2023-05-30 23:28:56");
obj1.setRingingTime("2023-05-30 23:28:56");
obj1.setCallEstablishedTime("2023-05-30 23:28:56");
obj1.setCallReleasedTime("2023-05-30 23:28:56");
obj1.setFromPhone("15141816666");
obj1.setCallType("CALL_OUT");
obj1.setIsvCauseCode("0");
req.setCallRecordNotifyRequest(obj1);
AlibabaAmapCallOutcallSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAmapCallOutcallSyncRequest req = new AlibabaAmapCallOutcallSyncRequest();
AlibabaAmapCallOutcallSyncRequest.CallRecordNotifyRequestDomain obj1 = new AlibabaAmapCallOutcallSyncRequest.CallRecordNotifyRequestDomain();
obj1.CallRecordId = "20230210880000000000000000520014";
obj1.EventTime = "2023-05-30 23:28:56";
obj1.HandleDuration = 55L;
obj1.RecFileUrl = "https://xxxxxxxxxxx.wav";
obj1.IsvCallRecordId = "20230530000000001";
obj1.EventType = "HANGUP";
obj1.DialingTime = "2023-05-30 23:28:56";
obj1.RingingTime = "2023-05-30 23:28:56";
obj1.CallEstablishedTime = "2023-05-30 23:28:56";
obj1.CallReleasedTime = "2023-05-30 23:28:56";
obj1.FromPhone = "15141816666";
obj1.CallType = "CALL_OUT";
obj1.IsvCauseCode = "0";
req.CallRecordNotifyRequest_ = obj1;
AlibabaAmapCallOutcallSyncResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAmapCallOutcallSyncRequest;
$call_record_notify_request = new CallRecordNotifyRequest;
$call_record_notify_request->call_record_id="20230210880000000000000000520014";
$call_record_notify_request->event_time="2023-05-30 23:28:56";
$call_record_notify_request->handle_duration="55";
$call_record_notify_request->rec_file_url="https://xxxxxxxxxxx.wav";
$call_record_notify_request->isv_call_record_id="20230530000000001";
$call_record_notify_request->event_type="HANGUP";
$call_record_notify_request->dialing_time="2023-05-30 23:28:56";
$call_record_notify_request->ringing_time="2023-05-30 23:28:56";
$call_record_notify_request->call_established_time="2023-05-30 23:28:56";
$call_record_notify_request->call_released_time="2023-05-30 23:28:56";
$call_record_notify_request->from_phone="15141816666";
$call_record_notify_request->call_type="CALL_OUT";
$call_record_notify_request->isv_cause_code="0";
$req->setCallRecordNotifyRequest(json_encode($call_record_notify_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.amap.call.outcall.sync' \
-d 'partner_id=apidoc' \
-d 'sign=63DA6F2FE303C4573B25F668ECD60116' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-08-24+04%3A25%3A40' \
-d 'v=2.0' \
-d 'call_record_notify_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAmapCallOutcallSyncRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.call_record_notify_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.amap.call.outcall.sync");
add_param(pRequest,"call_record_notify_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.amap.call.outcall.sync', {
'call_record_notify_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})