Example #1
0
 @Test
 public void batchUpload() throws WeixinException {
   User user = new User("id", "name");
   user.setPartyIds(1);
   String mediaId = mediaApi.batchUploadUsers(Arrays.asList(user));
   System.err.println(mediaId);
 }
Example #2
0
 @Test
 public void update() throws WeixinException {
   User user = new User("id", "name");
   user.setPartyIds(1);
   user.pushExattr("爱好", "code");
   JsonResult result = userApi.updateUser(user);
   Assert.assertEquals("updated", result.getDesc());
 }