TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyWechatLoginRequest req = new AlitripMerchantGalaxyWechatLoginRequest();
AlitripMerchantGalaxyWechatLoginRequest.LoginParam obj1 = new AlitripMerchantGalaxyWechatLoginRequest.LoginParam();
obj1.setInfoIv("vhbhbjb==");
obj1.setCode("vhjbnkmsd");
obj1.setEncryptedPhone("hduahfjaf==");
obj1.setSignature("huhjjknjandjsa");
obj1.setIp("127.0.0.1");
obj1.setEncryptedInfo("hduhahgfjakndjg=");
obj1.setPhoneIv("dhuiahjfhajdkf==");
obj1.setRawData("{\"nickName\":\"zhangsan\"}");
obj1.setChannel(1L);
obj1.setOldVersion(false);
AlitripMerchantGalaxyWechatLoginRequest.NewUserInfo obj2 = new AlitripMerchantGalaxyWechatLoginRequest.NewUserInfo();
obj2.setCountry("ch_ZH");
obj2.setGender(1L);
obj2.setProvince("zhejiang");
obj2.setCity("hangzhou");
obj2.setAvatarUrl("http://localhost");
obj2.setNickName("nick");
obj2.setLanguage("zh");
obj1.setNewUserinfo(obj2);
req.setLoginParam(obj1);
req.setTenantKey("123");
AlitripMerchantGalaxyWechatLoginResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripMerchantGalaxyWechatLoginRequest req = new AlitripMerchantGalaxyWechatLoginRequest();
AlitripMerchantGalaxyWechatLoginRequest.LoginParamDomain obj1 = new AlitripMerchantGalaxyWechatLoginRequest.LoginParamDomain();
obj1.InfoIv = "vhbhbjb==";
obj1.Code = "vhjbnkmsd";
obj1.EncryptedPhone = "hduahfjaf==";
obj1.Signature = "huhjjknjandjsa";
obj1.Ip = "127.0.0.1";
obj1.EncryptedInfo = "hduhahgfjakndjg=";
obj1.PhoneIv = "dhuiahjfhajdkf==";
obj1.RawData = "{\"nickName\":\"zhangsan\"}";
obj1.Channel = 1L;
obj1.OldVersion = false;
AlitripMerchantGalaxyWechatLoginRequest.NewUserInfoDomain obj2 = new AlitripMerchantGalaxyWechatLoginRequest.NewUserInfoDomain();
obj2.Country = "ch_ZH";
obj2.Gender = 1L;
obj2.Province = "zhejiang";
obj2.City = "hangzhou";
obj2.AvatarUrl = "http://localhost";
obj2.NickName = "nick";
obj2.Language = "zh";
obj1.NewUserinfo= obj2;
req.LoginParam_ = obj1;
req.TenantKey = "123";
AlitripMerchantGalaxyWechatLoginResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripMerchantGalaxyWechatLoginRequest;
$login_param = new LoginParam;
$login_param->info_iv="vhbhbjb==";
$login_param->code="vhjbnkmsd";
$login_param->encrypted_phone="hduahfjaf==";
$login_param->signature="huhjjknjandjsa";
$login_param->ip="127.0.0.1";
$login_param->encrypted_info="hduhahgfjakndjg=";
$login_param->phone_iv="dhuiahjfhajdkf==";
$login_param->raw_data="{\"nickName\":\"zhangsan\"}";
$login_param->channel="1";
$login_param->old_version="false";
$new_userinfo = new NewUserInfo;
$new_userinfo->country="ch_ZH";
$new_userinfo->gender="1";
$new_userinfo->province="zhejiang";
$new_userinfo->city="hangzhou";
$new_userinfo->avatar_url="http://localhost";
$new_userinfo->nick_name="nick";
$new_userinfo->language="zh";
$login_param->new_userinfo = $new_userinfo;
$req->setLoginParam(json_encode($login_param));
$req->setTenantKey("123");
$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.login' \
-d 'partner_id=apidoc' \
-d 'sign=2DCE5A37F9B5C5FDAFF1CCD8775E0707' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-10-03+03%3A28%3A07' \
-d 'v=2.0' \
-d 'login_param=null' \
-d 'tenant_key=123'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripMerchantGalaxyWechatLoginRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.login_param=""
req.tenant_key="123"
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.login");
add_param(pRequest,"login_param","数据结构JSON示例");
add_param(pRequest,"tenant_key","123");
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('alitrip.merchant.galaxy.wechat.login', {
'login_param':'数据结构JSON示例',
'tenant_key':'123'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})