TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripServeWorkorderRelationRequest req = new AlitripServeWorkorderRelationRequest();
AlitripServeWorkorderRelationRequest.CallerInfo obj1 = new AlitripServeWorkorderRelationRequest.CallerInfo();
obj1.setAppName("ori-fcir");
obj1.setAppSecret("hiuhoh3oh4oh5oih");
req.setCallerInfo(obj1);
AlitripServeWorkorderRelationRequest.ReceiveRelationCaseRequest obj2 = new AlitripServeWorkorderRelationRequest.ReceiveRelationCaseRequest();
obj2.setRelationType("urgeCase");
obj2.setOrderId("444444444");
obj2.setCaseId("000000");
obj2.setAttributes("{\"content\":\"\"}");
obj2.setCategoryId("3333");
obj2.setOperator("xingxing");
obj2.setRelationCaseId("11111111");
obj2.setUniqueId("12343");
req.setReceiveRelationCaseRequest(obj2);
AlitripServeWorkorderRelationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripServeWorkorderRelationRequest req = new AlitripServeWorkorderRelationRequest();
AlitripServeWorkorderRelationRequest.CallerInfoDomain obj1 = new AlitripServeWorkorderRelationRequest.CallerInfoDomain();
obj1.AppName = "ori-fcir";
obj1.AppSecret = "hiuhoh3oh4oh5oih";
req.CallerInfo_ = obj1;
AlitripServeWorkorderRelationRequest.ReceiveRelationCaseRequestDomain obj2 = new AlitripServeWorkorderRelationRequest.ReceiveRelationCaseRequestDomain();
obj2.RelationType = "urgeCase";
obj2.OrderId = "444444444";
obj2.CaseId = "000000";
obj2.Attributes = "{\"content\":\"\"}";
obj2.CategoryId = "3333";
obj2.Operator = "xingxing";
obj2.RelationCaseId = "11111111";
obj2.UniqueId = "12343";
req.ReceiveRelationCaseRequest_ = obj2;
AlitripServeWorkorderRelationResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripServeWorkorderRelationRequest;
$caller_info = new CallerInfo;
$caller_info->app_name="ori-fcir";
$caller_info->app_secret="hiuhoh3oh4oh5oih";
$req->setCallerInfo(json_encode($caller_info));
$receive_relation_case_request = new ReceiveRelationCaseRequest;
$receive_relation_case_request->relation_type="urgeCase";
$receive_relation_case_request->order_id="444444444";
$receive_relation_case_request->case_id="000000";
$receive_relation_case_request->attributes="{\"content\":\"\"}";
$receive_relation_case_request->category_id="3333";
$receive_relation_case_request->operator="xingxing";
$receive_relation_case_request->relation_case_id="11111111";
$receive_relation_case_request->unique_id="12343";
$req->setReceiveRelationCaseRequest(json_encode($receive_relation_case_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=alitrip.serve.workorder.relation' \
-d 'partner_id=apidoc' \
-d 'sign=BB8C001D07572BAFDE653DF73E2B3379' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-09+17%3A36%3A40' \
-d 'v=2.0' \
-d 'caller_info=null' \
-d 'receive_relation_case_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripServeWorkorderRelationRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.caller_info="数据结构示例JSON格式"
req.receive_relation_case_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,"alitrip.serve.workorder.relation");
add_param(pRequest,"caller_info","数据结构JSON示例");
add_param(pRequest,"receive_relation_case_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('alitrip.serve.workorder.relation', {
'caller_info':'数据结构JSON示例',
'receive_relation_case_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})