TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMpPtnrCreateRequest req = new AlibabaDamaiMpPtnrCreateRequest();
req.setContextString("{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }");
AlibabaDamaiMpPtnrCreateRequest.OpenAccountCreateRequest obj1 = new AlibabaDamaiMpPtnrCreateRequest.OpenAccountCreateRequest();
obj1.setOpenNickName("1");
obj1.setBirthday("1");
obj1.setPwdSalt("1");
obj1.setCountry("1");
obj1.setLoginId("1");
obj1.setIsvAccountId("1");
obj1.setLoginPwd("1");
obj1.setGender(1L);
obj1.setPwdEncryption(1L);
obj1.setOpenId("1");
obj1.setDisplayName("1");
obj1.setWangwang("1");
obj1.setCompanyName("1");
obj1.setExtInfos("1");
obj1.setOutPlatformType("1");
obj1.setType(1L);
obj1.setLocale("1");
obj1.setSecurityMobile("1");
obj1.setCreateLocation("1");
obj1.setEmail("1");
obj1.setPwdEncrypted(false);
obj1.setMobileLocationCode("1");
obj1.setAvatarUrl("1");
obj1.setBankCardNo("1");
obj1.setMobile("1");
obj1.setSecurityEmail("1");
obj1.setOsId("1");
obj1.setParentId(1L);
obj1.setWeixin("1");
obj1.setCreateDeviceId("1");
obj1.setBankCardOwnerName("1");
obj1.setName("1");
obj1.setIsSubAccount(false);
obj1.setLinkType("1");
obj1.setAlipayId("1");
obj1.setStatus(1L);
req.setOpenAccount(obj1);
AlibabaDamaiMpPtnrCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDamaiMpPtnrCreateRequest req = new AlibabaDamaiMpPtnrCreateRequest();
req.Context = "{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }";
AlibabaDamaiMpPtnrCreateRequest.OpenAccountCreateRequestDomain obj1 = new AlibabaDamaiMpPtnrCreateRequest.OpenAccountCreateRequestDomain();
obj1.OpenNickName = "1";
obj1.Birthday = "1";
obj1.PwdSalt = "1";
obj1.Country = "1";
obj1.LoginId = "1";
obj1.IsvAccountId = "1";
obj1.LoginPwd = "1";
obj1.Gender = 1L;
obj1.PwdEncryption = 1L;
obj1.OpenId = "1";
obj1.DisplayName = "1";
obj1.Wangwang = "1";
obj1.CompanyName = "1";
obj1.ExtInfos = "1";
obj1.OutPlatformType = "1";
obj1.Type = 1L;
obj1.Locale = "1";
obj1.SecurityMobile = "1";
obj1.CreateLocation = "1";
obj1.Email = "1";
obj1.PwdEncrypted = false;
obj1.MobileLocationCode = "1";
obj1.AvatarUrl = "1";
obj1.BankCardNo = "1";
obj1.Mobile = "1";
obj1.SecurityEmail = "1";
obj1.OsId = "1";
obj1.ParentId = 1L;
obj1.Weixin = "1";
obj1.CreateDeviceId = "1";
obj1.BankCardOwnerName = "1";
obj1.Name = "1";
obj1.IsSubAccount = false;
obj1.LinkType = "1";
obj1.AlipayId = "1";
obj1.Status = 1L;
req.OpenAccount_ = obj1;
AlibabaDamaiMpPtnrCreateResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDamaiMpPtnrCreateRequest;
$req->setContext("{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }");
$open_account = new OpenAccountCreateRequest;
$open_account->open_nick_name="1";
$open_account->birthday="1";
$open_account->pwd_salt="1";
$open_account->country="1";
$open_account->login_id="1";
$open_account->isv_account_id="1";
$open_account->login_pwd="1";
$open_account->gender="1";
$open_account->pwd_encryption="1";
$open_account->open_id="1";
$open_account->display_name="1";
$open_account->wangwang="1";
$open_account->company_name="1";
$open_account->ext_infos="1";
$open_account->out_platform_type="1";
$open_account->type="1";
$open_account->locale="1";
$open_account->security_mobile="1";
$open_account->create_location="1";
$open_account->email="1";
$open_account->pwd_encrypted="false";
$open_account->mobile_location_code="1";
$open_account->avatar_url="1";
$open_account->bank_card_no="1";
$open_account->mobile="1";
$open_account->security_email="1";
$open_account->os_id="1";
$open_account->parent_id="1";
$open_account->weixin="1";
$open_account->create_device_id="1";
$open_account->bank_card_owner_name="1";
$open_account->name="1";
$open_account->is_sub_account="false";
$open_account->link_type="1";
$open_account->alipay_id="1";
$open_account->status="1";
$req->setOpenAccount(json_encode($open_account));
$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.create' \
-d 'partner_id=apidoc' \
-d 'sign=F0F36B86BC584AB5B7AB9DA15CCA2BE4' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-01+20%3A00%3A50' \
-d 'v=2.0' \
-d 'context=%7B+++++%5C%22appDomain%5C%22%3A+%5C%225357049%5C%22%2C+++++%5C%22appKey%5C%22%3A+%5C%2224526121%5C%22%2C+++++%5C%22appSecret%5C%22%3A+%5C%2258a4d3696199491eb3a3598dd63903d9%5C%22+++%7D' \
-d 'open_account=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDamaiMpPtnrCreateRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.context="{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }"
req.open_account="数据结构示例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.create");
add_param(pRequest,"context","{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }");
add_param(pRequest,"open_account","数据结构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.create', {
'context':'{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }',
'open_account':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})