TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIntlTranslationplatformTerminologiesUpdateRequest req = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest();
AlibabaIntlTranslationplatformTerminologiesUpdateRequest.InputDTO obj1 = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest.InputDTO();
obj1.setCountry("MT_ALL");
obj1.setSrc("Take over the pipe");
obj1.setAppName("MT_ALL");
obj1.setMatchType(2L);
obj1.setTrg("对接管");
obj1.setPriority(1L);
obj1.setSrcGeneralizeLabel("null");
obj1.setUserName("lsk01628102");
obj1.setType(1001L);
obj1.setCustomBpmAuthKey("null");
obj1.setBusinessSide("MT_ALL");
obj1.setInterferenceType("term");
obj1.setExtraCondition("null");
obj1.setId(0L);
obj1.setTag("null");
obj1.setEntryReason(2L);
obj1.setTrgLang("zh");
obj1.setFieldType("null");
obj1.setCustomBpmCode("null");
obj1.setSrcLang("en");
obj1.setSrcGeneralize(1L);
req.setInputDto(obj1);
AlibabaIntlTranslationplatformTerminologiesUpdateRequest.ActionDTO obj2 = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest.ActionDTO();
obj2.setEmplId("WB01628102");
obj2.setBu("aliyun");
obj2.setOpEnum("ADD");
obj2.setIsAdmin(true);
obj2.setUserName("梁少康");
obj2.setVerifyBu(false);
obj2.setIsInner(false);
req.setActionDto(obj2);
AlibabaIntlTranslationplatformTerminologiesUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIntlTranslationplatformTerminologiesUpdateRequest req = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest();
AlibabaIntlTranslationplatformTerminologiesUpdateRequest.InputDTODomain obj1 = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest.InputDTODomain();
obj1.Country = "MT_ALL";
obj1.Src = "Take over the pipe";
obj1.AppName = "MT_ALL";
obj1.MatchType = 2L;
obj1.Trg = "对接管";
obj1.Priority = 1L;
obj1.SrcGeneralizeLabel = "null";
obj1.UserName = "lsk01628102";
obj1.Type = 1001L;
obj1.CustomBpmAuthKey = "null";
obj1.BusinessSide = "MT_ALL";
obj1.InterferenceType = "term";
obj1.ExtraCondition = "null";
obj1.Id = 0L;
obj1.Tag = "null";
obj1.EntryReason = 2L;
obj1.TrgLang = "zh";
obj1.FieldType = "null";
obj1.CustomBpmCode = "null";
obj1.SrcLang = "en";
obj1.SrcGeneralize = 1L;
req.InputDto_ = obj1;
AlibabaIntlTranslationplatformTerminologiesUpdateRequest.ActionDTODomain obj2 = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest.ActionDTODomain();
obj2.EmplId = "WB01628102";
obj2.Bu = "aliyun";
obj2.OpEnum = "ADD";
obj2.IsAdmin = true;
obj2.UserName = "梁少康";
obj2.VerifyBu = false;
obj2.IsInner = false;
req.ActionDto_ = obj2;
AlibabaIntlTranslationplatformTerminologiesUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest;
$input_dto = new InputDTO;
$input_dto->country="MT_ALL";
$input_dto->src="Take over the pipe";
$input_dto->app_name="MT_ALL";
$input_dto->match_type="2";
$input_dto->trg="对接管";
$input_dto->priority="1";
$input_dto->src_generalize_label="null";
$input_dto->user_name="lsk01628102";
$input_dto->type="1001";
$input_dto->custom_bpm_auth_key="null";
$input_dto->business_side="MT_ALL";
$input_dto->interference_type="term";
$input_dto->extra_condition="null";
$input_dto->id="0";
$input_dto->tag="null";
$input_dto->entry_reason="2";
$input_dto->trg_lang="zh";
$input_dto->field_type="null";
$input_dto->custom_bpm_code="null";
$input_dto->src_lang="en";
$input_dto->src_generalize="1";
$req->setInputDto(json_encode($input_dto));
$action_dto = new ActionDTO;
$action_dto->empl_id="WB01628102";
$action_dto->bu="aliyun";
$action_dto->op_enum="ADD";
$action_dto->is_admin="true";
$action_dto->user_name="梁少康";
$action_dto->verify_bu="false";
$action_dto->is_inner="false";
$req->setActionDto(json_encode($action_dto));
$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.intl.translationplatform.terminologies.update' \
-d 'partner_id=apidoc' \
-d 'sign=4DF892499E3C93307B840A89C5F78291' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-09-13+17%3A03%3A47' \
-d 'v=2.0' \
-d 'action_dto=null' \
-d 'input_dto=inputDTOS'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIntlTranslationplatformTerminologiesUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.input_dto="inputDTOS"
req.action_dto="数据结构示例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.intl.translationplatform.terminologies.update");
add_param(pRequest,"input_dto","数据结构JSON示例");
add_param(pRequest,"action_dto","数据结构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.intl.translationplatform.terminologies.update', {
'input_dto':'数据结构JSON示例',
'action_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})