(批量)删除企微通讯录成员

官方地址删除成员 - 接口文档 - 企业微信开发者中心

public static Map deleteUser(Map userMap) throws Exception {
		Map resultMap = new HashMap<>();
		try {
			// 校验必填
			String userid = MapUtil.checkStringExistMap(userMap, "userid");
			String accessToken = getToken("");

			String result = HttpsUtil.getHttp(delete_user_url, "access_token=" + accessToken + "&userid=" + userid);
			resultMap = orderSimpleResult(result);
			return resultMap;
		} catch (Exception e) {
			throw new Exception(e);

		}
	}

官方地址批量删除成员 - 接口文档 - 企业微信开发者中心

public static Map batchDeleteUser(Map userMap) throws Exception {
		Map resultMap = new HashMap<>();
		try {
			// 校验必填
			MapUtil.checkStringExistMap(userMap, "useridlist");
			String accessToken = getToken("");

			String result = HttpsUtil.postHttpJson(deletes_user_url, "access_token=" + accessToken, userMap);
			resultMap = orderSimpleResult(result);
			return resultMap;
		} catch (Exception e) {
			throw new Exception(e);

		}
	}

你可能感兴趣的:(企业微信,spring,企业微信)