TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallNrtMiaolingThirdLoginRequest req = new TmallNrtMiaolingThirdLoginRequest();
TmallNrtMiaolingThirdLoginRequest.NrtEaLoginDTO obj1 = new TmallNrtMiaolingThirdLoginRequest.NrtEaLoginDTO();
obj1.setActionType("ea");
obj1.setEntName("测试企业");
obj1.setBindSiteUserId(1111L);
obj1.setEntId(1111L);
obj1.setBizCode("easyHome");
obj1.setOperateTime(145667933344L);
obj1.setMobile("1310000000");
obj1.setUserId("123344");
obj1.setScene("miaoling_pos");
req.setNrtEaLoginDto(obj1);
TmallNrtMiaolingThirdLoginResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallNrtMiaolingThirdLoginRequest req = new TmallNrtMiaolingThirdLoginRequest();
TmallNrtMiaolingThirdLoginRequest.NrtEaLoginDTODomain obj1 = new TmallNrtMiaolingThirdLoginRequest.NrtEaLoginDTODomain();
obj1.ActionType = "ea";
obj1.EntName = "测试企业";
obj1.BindSiteUserId = 1111L;
obj1.EntId = 1111L;
obj1.BizCode = "easyHome";
obj1.OperateTime = 145667933344L;
obj1.Mobile = "1310000000";
obj1.UserId = "123344";
obj1.Scene = "miaoling_pos";
req.NrtEaLoginDto_ = obj1;
TmallNrtMiaolingThirdLoginResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallNrtMiaolingThirdLoginRequest;
$nrt_ea_login_dto = new NrtEaLoginDTO;
$nrt_ea_login_dto->action_type="ea";
$nrt_ea_login_dto->ent_name="测试企业";
$nrt_ea_login_dto->bind_site_user_id="1111";
$nrt_ea_login_dto->ent_id="1111";
$nrt_ea_login_dto->biz_code="easyHome";
$nrt_ea_login_dto->operate_time="145667933344";
$nrt_ea_login_dto->mobile="1310000000";
$nrt_ea_login_dto->user_id="123344";
$nrt_ea_login_dto->scene="miaoling_pos";
$req->setNrtEaLoginDto(json_encode($nrt_ea_login_dto));
$resp = $c->execute($req, $sessionKey);
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=tmall.nrt.miaoling.third.login' \
-d 'partner_id=apidoc' \
-d 'session=66434fa6-c3c3-440e-96ed-0032305a4d09' \
-d 'sign=BEBE84339783FE5E0E244CAFCC54ABE8' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+21%3A01%3A50' \
-d 'v=2.0' \
-d 'nrt_ea_login_dto=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallNrtMiaolingThirdLoginRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.nrt_ea_login_dto="数据结构示例JSON格式"
try:
resp= req.getResponse(sessionkey)
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,"tmall.nrt.miaoling.third.login");
add_param(pRequest,"nrt_ea_login_dto","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('tmall.nrt.miaoling.third.login', {
'nrt_ea_login_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})