TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIntlTranslationplatformTerminologyUpdateRequest req = new AlibabaIntlTranslationplatformTerminologyUpdateRequest();
AlibabaIntlTranslationplatformTerminologyUpdateRequest.InputDTO obj1 = new AlibabaIntlTranslationplatformTerminologyUpdateRequest.InputDTO();
obj1.setCountry("MT_ALL");
obj1.setSrc("缠绕链测试");
obj1.setAppName("cloud-standard-common");
obj1.setMatchType(1L);
obj1.setTrg("Winding Chain Test");
obj1.setPriority(1L);
obj1.setSrcGeneralizeLabel("null");
obj1.setUserName("WB01628102");
obj1.setType(1001L);
obj1.setCustomBpmAuthKey("null");
obj1.setBusinessSide("aliyun");
obj1.setInterferenceType("term");
obj1.setExtraCondition("null");
obj1.setId(0L);
obj1.setTag("null");
obj1.setEntryReason(2L);
obj1.setTrgLang("en");
obj1.setFieldType("null");
obj1.setCustomBpmCode("null");
obj1.setSrcLang("zh");
obj1.setSrcGeneralize(1L);
req.setInputDto(obj1);
AlibabaIntlTranslationplatformTerminologyUpdateRequest.ActionDTO obj2 = new AlibabaIntlTranslationplatformTerminologyUpdateRequest.ActionDTO();
obj2.setEmplId("WB01628102");
obj2.setBu("aliyun");
obj2.setOpEnum("ADD");
obj2.setIsAdmin(true);
obj2.setUserName("梁少康");
obj2.setVerifyBu(false);
obj2.setIsInner(false);
req.setActionDto(obj2);
AlibabaIntlTranslationplatformTerminologyUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIntlTranslationplatformTerminologyUpdateRequest req = new AlibabaIntlTranslationplatformTerminologyUpdateRequest();
AlibabaIntlTranslationplatformTerminologyUpdateRequest.InputDTODomain obj1 = new AlibabaIntlTranslationplatformTerminologyUpdateRequest.InputDTODomain();
obj1.Country = "MT_ALL";
obj1.Src = "缠绕链测试";
obj1.AppName = "cloud-standard-common";
obj1.MatchType = 1L;
obj1.Trg = "Winding Chain Test";
obj1.Priority = 1L;
obj1.SrcGeneralizeLabel = "null";
obj1.UserName = "WB01628102";
obj1.Type = 1001L;
obj1.CustomBpmAuthKey = "null";
obj1.BusinessSide = "aliyun";
obj1.InterferenceType = "term";
obj1.ExtraCondition = "null";
obj1.Id = 0L;
obj1.Tag = "null";
obj1.EntryReason = 2L;
obj1.TrgLang = "en";
obj1.FieldType = "null";
obj1.CustomBpmCode = "null";
obj1.SrcLang = "zh";
obj1.SrcGeneralize = 1L;
req.InputDto_ = obj1;
AlibabaIntlTranslationplatformTerminologyUpdateRequest.ActionDTODomain obj2 = new AlibabaIntlTranslationplatformTerminologyUpdateRequest.ActionDTODomain();
obj2.EmplId = "WB01628102";
obj2.Bu = "aliyun";
obj2.OpEnum = "ADD";
obj2.IsAdmin = true;
obj2.UserName = "梁少康";
obj2.VerifyBu = false;
obj2.IsInner = false;
req.ActionDto_ = obj2;
AlibabaIntlTranslationplatformTerminologyUpdateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIntlTranslationplatformTerminologyUpdateRequest;
$input_dto = new InputDTO;
$input_dto->country="MT_ALL";
$input_dto->src="缠绕链测试";
$input_dto->app_name="cloud-standard-common";
$input_dto->match_type="1";
$input_dto->trg="Winding Chain Test";
$input_dto->priority="1";
$input_dto->src_generalize_label="null";
$input_dto->user_name="WB01628102";
$input_dto->type="1001";
$input_dto->custom_bpm_auth_key="null";
$input_dto->business_side="aliyun";
$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="en";
$input_dto->field_type="null";
$input_dto->custom_bpm_code="null";
$input_dto->src_lang="zh";
$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.terminology.update' \
-d 'partner_id=apidoc' \
-d 'sign=A9FC3973E8A0E11FD31A46B6712D7D12' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-09-18+05%3A14%3A23' \
-d 'v=2.0' \
-d 'action_dto=null' \
-d 'input_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIntlTranslationplatformTerminologyUpdateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.input_dto="数据结构示例JSON格式"
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.terminology.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.terminology.update', {
'input_dto':'数据结构JSON示例',
'action_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})