导读:taobao.open.account.create( Open Account导入数据 )Open Account导入数据公共参数请求地址:公共请求参数:公共
taobao.open.account.create( Open Account导入数据 )
Open Account导入数据
公共参数
请求地址:
公共请求参数:
公共响应参数:
请求参数
响应参数
请求示例
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpenAccountCreateRequest req = new OpenAccountCreateRequest();
List<OpenAccount> list2 = new ArrayList<OpenAccount>();
OpenAccount obj3 = new OpenAccount();
list2.add(obj3);
obj3.setLoginId("baymax");
obj3.setCreateDeviceId("FxJbzXjm3vtO2GqNIdfnej9Db44Kwek");
obj3.setAlipayId("baymax@126.com");
obj3.setLocale("zh_CN");
obj3.setBankCardNo("1234 7655 28763 211");
obj3.setIsvAccountId("19862");
obj3.setEmail("abc@126.com");
obj3.setAvatarUrl("http://image.abc.com/aa.jpg");
obj3.setBankCardOwnerName("baymax");
obj3.setDisplayName("baymax");
obj3.setLoginPwdSalt("WjndM");
obj3.setLoginPwd("xmbuioyfhkuijaamdkoohndmadjidhjifjd");
obj3.setOpenId("xhdjeiyenmkljagjud");
obj3.setMobile("17084836002");
obj3.setCreateLocation("120.146484,30.313617");
obj3.setExtInfos("{\"gender\":\"male\"}");
obj3.setLoginPwdIntensity(1L);
obj3.setType(2L);
obj3.setStatus(1L);
obj3.setLoginPwdEncryption(1L);
obj3.setGender(1L);
obj3.setName("baymax");
obj3.setBirthday("20150120");
obj3.setWangwang("baymax");
obj3.setWeixin("1822939822");
obj3.setOauthPlateform(1L);
req.setParamList(list2);
OpenAccountCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
响应示例
<open_account_create_response>
<datas>
<openaccount_long>
<message>SUCCESS</message>
<data>123</data>
<code>1</code>
<successful>true</successful>
</openaccount_long>
</datas>
</open_account_create_response>
异常示例
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>