TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest req = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest();
req.setTenantKey("1006373010");
AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.LoginParam obj1 = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.LoginParam();
obj1.setCode("123");
obj1.setRawData("{\"nkName\":\"zhangsan\"}");
obj1.setSignature("sdfsdf");
obj1.setEncryptedInfo("asdasd");
obj1.setInfoIv("fgdfas");
obj1.setEncryptedPhone("gasdgsdga");
obj1.setPhoneIv("asdfsadfaf");
obj1.setIp("asdgasdg");
obj1.setChannel(1L);
obj1.setOldVersion(true);
obj1.setSceneDistinction("SECOND_VERIFICATION");
obj1.setNameVerification("yuanc");
AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.NewUserInfo obj2 = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.NewUserInfo();
obj2.setNkName("nkName");
obj2.setGender(1L);
obj2.setLanguage("zh");
obj2.setCity("hangzhou");
obj2.setProvince("zhejiang");
obj2.setCountry("ch_ZH");
obj2.setAvatarUrl("http://xxxx");
obj1.setNewUserinfo(obj2);
req.setLoginParam(obj1);
AlitripMerchantGalaxyWechatUserAuthorizeLoginResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest req = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest();
req.TenantKey = "1006373010";
AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.LoginParamDomain obj1 = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.LoginParamDomain();
obj1.Code = "123";
obj1.RawData = "{\"nkName\":\"zhangsan\"}";
obj1.Signature = "sdfsdf";
obj1.EncryptedInfo = "asdasd";
obj1.InfoIv = "fgdfas";
obj1.EncryptedPhone = "gasdgsdga";
obj1.PhoneIv = "asdfsadfaf";
obj1.Ip = "asdgasdg";
obj1.Channel = 1L;
obj1.OldVersion = true;
obj1.SceneDistinction = "SECOND_VERIFICATION";
obj1.NameVerification = "yuanc";
AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.NewUserInfoDomain obj2 = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest.NewUserInfoDomain();
obj2.NkName = "nkName";
obj2.Gender = 1L;
obj2.Language = "zh";
obj2.City = "hangzhou";
obj2.Province = "zhejiang";
obj2.Country = "ch_ZH";
obj2.AvatarUrl = "http://xxxx";
obj1.NewUserinfo= obj2;
req.LoginParam_ = obj1;
AlitripMerchantGalaxyWechatUserAuthorizeLoginResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest;
$req->setTenantKey("1006373010");
$login_param = new LoginParam;
$login_param->code="123";
$login_param->raw_data="{\"nkName\":\"zhangsan\"}";
$login_param->signature="sdfsdf";
$login_param->encrypted_info="asdasd";
$login_param->info_iv="fgdfas";
$login_param->encrypted_phone="gasdgsdga";
$login_param->phone_iv="asdfsadfaf";
$login_param->ip="asdgasdg";
$login_param->channel="1";
$login_param->old_version="true";
$login_param->scene_distinction="SECOND_VERIFICATION";
$login_param->name_verification="yuanc";
$new_userinfo = new NewUserInfo;
$new_userinfo->nk_name="nkName";
$new_userinfo->gender="1";
$new_userinfo->language="zh";
$new_userinfo->city="hangzhou";
$new_userinfo->province="zhejiang";
$new_userinfo->country="ch_ZH";
$new_userinfo->avatar_url="http://xxxx";
$login_param->new_userinfo = $new_userinfo;
$req->setLoginParam(json_encode($login_param));
$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=alitrip.merchant.galaxy.wechat.user.authorize.login' \
-d 'partner_id=apidoc' \
-d 'sign=9DF085B26BDA12ADA22E78F80EFCB6F2' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-04+05%3A43%3A26' \
-d 'v=2.0' \
-d 'login_param=ss' \
-d 'tenant_key=1006373010'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripMerchantGalaxyWechatUserAuthorizeLoginRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.tenant_key="1006373010"
req.login_param="ss"
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,"alitrip.merchant.galaxy.wechat.user.authorize.login");
add_param(pRequest,"tenant_key","1006373010");
add_param(pRequest,"login_param","数据结构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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alitrip.merchant.galaxy.wechat.user.authorize.login', {
'tenant_key':'1006373010',
'login_param':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})