String baseUrl = "http://en.wikipedia.org";
Matcher matcher = MATCH_WIKI_SITE_BASE.matcher(fullBaseUrl);
if (matcher.matches()) {
baseUrl = matcher.group(1);
}
User user = new User("", "", baseUrl + "/w/api.php");
Connector connector = new Connector();
user = connector.login(user);
// set image width thumb size to 200px
List<info.bliki.api.Page> pages = user.queryImageinfo(new String[] { image }, 200);
if (pages.size() == 1) {
info.bliki.api.Page imagePage = pages.get(0);
// System.out.println("IMG-THUMB-URL: " + imagePage.getImageThumbUrl());
// System.out.println("IMG-URL: " + imagePage.getImageUrl());