Examples of queryImageinfo()


Examples of info.bliki.api.User.queryImageinfo()

  public static void testQueryImageinfo001() {
    String[] listOfImageStrings = { "Image:Question book-new.svg", "Image:Test.jpg", "Image:Brandenburger Tor Blaue Stunde.jpg" };
    User user = new User("", "", "http://en.wikipedia.org/w/api.php");
    user.login();
    List<Page> listOfPages = user.queryImageinfo(listOfImageStrings);
    for (Page page : listOfPages) {
      // print page information
      System.out.println(page.toString());
      // download the image to c:\temp directory
      FileOutputStream os = null;
View Full Code Here

Examples of info.bliki.api.User.queryImageinfo()

        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());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.