¥开放平台免费API不需用户授权
Open Account数据更新
公共参数
请求地址:
HTTP地址
http://gw.api.taobao.com/router/rest
公共请求参数:
公共响应参数:
响应参数
点击获取key和secret
请求示例
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpenAccountUpdateRequest req = new OpenAccountUpdateRequest();
List list2 = new ArrayList();
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.setId(123L);
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);
OpenAccountUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
响应示例
<open_account_update_response>
<openaccount_void>
SUCCESS
true
1
</openaccount_void>
</open_account_update_response>
异常示例
<error_response>
50
Remote service error
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>