TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMpPtnrOpenaccountAuthRequest req = new AlibabaDamaiMpPtnrOpenaccountAuthRequest();
req.setMapString("{}");
AlibabaDamaiMpPtnrOpenaccountAuthRequest.OpenAccountAuthRequest obj1 = new AlibabaDamaiMpPtnrOpenaccountAuthRequest.OpenAccountAuthRequest();
obj1.setLoginAccount("参数");
obj1.setPassword("参数");
obj1.setOpenAccountId(1L);
AlibabaDamaiMpPtnrOpenaccountAuthRequest.AuthResponseConfig obj2 = new AlibabaDamaiMpPtnrOpenaccountAuthRequest.AuthResponseConfig();
obj2.setAccountLinkfilterCondition("{}");
obj2.setReturnAccountLink(false);
obj2.setReturnAccount(false);
obj1.setAuthResponseConfig(obj2);
obj1.setRiskControlInfo("{}");
req.setOpenAccountAuthRequest(obj1);
AlibabaDamaiMpPtnrOpenaccountAuthResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDamaiMpPtnrOpenaccountAuthRequest req = new AlibabaDamaiMpPtnrOpenaccountAuthRequest();
req.Map = "{}";
AlibabaDamaiMpPtnrOpenaccountAuthRequest.OpenAccountAuthRequestDomain obj1 = new AlibabaDamaiMpPtnrOpenaccountAuthRequest.OpenAccountAuthRequestDomain();
obj1.LoginAccount = "参数";
obj1.Password = "参数";
obj1.OpenAccountId = 1L;
AlibabaDamaiMpPtnrOpenaccountAuthRequest.AuthResponseConfigDomain obj2 = new AlibabaDamaiMpPtnrOpenaccountAuthRequest.AuthResponseConfigDomain();
obj2.AccountLinkfilterCondition = "{}";
obj2.ReturnAccountLink = false;
obj2.ReturnAccount = false;
obj1.AuthResponseConfig= obj2;
obj1.RiskControlInfo = "{}";
req.OpenAccountAuthRequest_ = obj1;
AlibabaDamaiMpPtnrOpenaccountAuthResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDamaiMpPtnrOpenaccountAuthRequest;
$req->setMap("{}");
$open_account_auth_request = new OpenAccountAuthRequest;
$open_account_auth_request->login_account="参数";
$open_account_auth_request->password="参数";
$open_account_auth_request->open_account_id="1";
$auth_response_config = new AuthResponseConfig;
$auth_response_config->account_linkfilter_condition="{}";
$auth_response_config->return_account_link="false";
$auth_response_config->return_account="false";
$open_account_auth_request->auth_response_config = $auth_response_config;
$open_account_auth_request->risk_control_info="{}";
$req->setOpenAccountAuthRequest(json_encode($open_account_auth_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.damai.mp.ptnr.openaccount.auth' \
-d 'partner_id=apidoc' \
-d 'sign=AC6B230CE9DA13C392C83757EDFDCA18' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-02+04%3A35%3A59' \
-d 'v=2.0' \
-d 'map=%7B%7D' \
-d 'open_account_auth_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDamaiMpPtnrOpenaccountAuthRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.map="{}"
req.open_account_auth_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.damai.mp.ptnr.openaccount.auth");
add_param(pRequest,"map","{}");
add_param(pRequest,"open_account_auth_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.damai.mp.ptnr.openaccount.auth', {
'map':'{}',
'open_account_auth_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})