星河产品=用户微信小程序登陆
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
login_param | LoginParam | 必须 | 微信小程序登陆请求参数 | ||
|
|||||
tenant_key | String | 必须 | 123 | 租户身份信息 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Response | 默认描述 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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.setNickName( "nick" ); obj2.setLanguage( "zh" ); obj1.setNewUserinfo(obj2); req.setLoginParam(obj1); req.setTenantKey( "123" ); AlitripMerchantGalaxyWechatLoginResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < alitrip_merchant_galaxy_wechat_login_response > < result > < success ></ success > < error_code ></ error_code > < token ></ token > < error_msg ></ error_msg > </ result > </ alitrip_merchant_galaxy_wechat_login_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|