TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest req = new AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest();
req.setContextString("{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }");
AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest.OpenAccountProfile obj1 = new AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest.OpenAccountProfile();
obj1.setBirthday("1");
obj1.setCountry("1");
obj1.setGender(1L);
obj1.setOauthPlateform(1L);
obj1.setDisplayName("1");
obj1.setWangwang("1");
obj1.setCompanyName("1");
obj1.setExtInfos("{}");
obj1.setType(1L);
obj1.setLocale("1");
obj1.setSecurityMobile("1");
obj1.setMobileConflictAccount(false);
obj1.setId(1L);
obj1.setCreateLocation("1");
obj1.setAvatarUrl("1");
obj1.setBankCardNo("1");
obj1.setSecurityEmail("1");
obj1.setParentId(1L);
obj1.setWeixin("1");
obj1.setCreateDeviceId("1");
obj1.setBankCardOwnerName("1");
obj1.setName("1");
obj1.setIsSubAccount(false);
obj1.setEnableDevice(false);
obj1.setAlipayId("1");
obj1.setStatus(1L);
req.setOpenAccountProfile(obj1);
AlibabaDamaiMpPtnrUpdateopenaccountprofileResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest req = new AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest();
req.Context = "{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }";
AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest.OpenAccountProfileDomain obj1 = new AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest.OpenAccountProfileDomain();
obj1.Birthday = "1";
obj1.Country = "1";
obj1.Gender = 1L;
obj1.OauthPlateform = 1L;
obj1.DisplayName = "1";
obj1.Wangwang = "1";
obj1.CompanyName = "1";
obj1.ExtInfos = "{}";
obj1.Type = 1L;
obj1.Locale = "1";
obj1.SecurityMobile = "1";
obj1.MobileConflictAccount = false;
obj1.Id = 1L;
obj1.CreateLocation = "1";
obj1.AvatarUrl = "1";
obj1.BankCardNo = "1";
obj1.SecurityEmail = "1";
obj1.ParentId = 1L;
obj1.Weixin = "1";
obj1.CreateDeviceId = "1";
obj1.BankCardOwnerName = "1";
obj1.Name = "1";
obj1.IsSubAccount = false;
obj1.EnableDevice = false;
obj1.AlipayId = "1";
obj1.Status = 1L;
req.OpenAccountProfile_ = obj1;
AlibabaDamaiMpPtnrUpdateopenaccountprofileResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest;
$req->setContext("{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }");
$open_account_profile = new OpenAccountProfile;
$open_account_profile->birthday="1";
$open_account_profile->country="1";
$open_account_profile->gender="1";
$open_account_profile->oauth_plateform="1";
$open_account_profile->display_name="1";
$open_account_profile->wangwang="1";
$open_account_profile->company_name="1";
$open_account_profile->ext_infos="{}";
$open_account_profile->type="1";
$open_account_profile->locale="1";
$open_account_profile->security_mobile="1";
$open_account_profile->mobile_conflict_account="false";
$open_account_profile->id="1";
$open_account_profile->create_location="1";
$open_account_profile->avatar_url="1";
$open_account_profile->bank_card_no="1";
$open_account_profile->security_email="1";
$open_account_profile->parent_id="1";
$open_account_profile->weixin="1";
$open_account_profile->create_device_id="1";
$open_account_profile->bank_card_owner_name="1";
$open_account_profile->name="1";
$open_account_profile->is_sub_account="false";
$open_account_profile->enable_device="false";
$open_account_profile->alipay_id="1";
$open_account_profile->status="1";
$req->setOpenAccountProfile(json_encode($open_account_profile));
$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.updateopenaccountprofile' \
-d 'partner_id=apidoc' \
-d 'sign=BAED50F3C59BF84D447B35771DD719BA' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-12+04%3A44%3A53' \
-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_profile=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaDamaiMpPtnrUpdateopenaccountprofileRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.context="{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }"
req.open_account_profile="数据结构示例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.updateopenaccountprofile");
add_param(pRequest,"context","{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }");
add_param(pRequest,"open_account_profile","数据结构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.updateopenaccountprofile', {
'context':'{ \"appDomain\": \"5357049\", \"appKey\": \"24526121\", \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\" }',
'open_account_profile':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})