Package info.bliki.api

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


  public static void testQueryContent001() {
    String[] listOfTitleStrings = { "Main Page", "API" };
    User user = new User("", "", "http://meta.wikimedia.org/w/api.php");
    user.login();
    List<Page> listOfPages = user.queryContent(listOfTitleStrings);
    for (Page page : listOfPages) {
      // print page information
      System.out.println(page.getCurrentContent());
    }
  }
View Full Code Here


    WikiModel wikiModel = new WikiModel("http://en.wikipedia.org/wiki/${image}", "http://en.wikipedia.org/wiki/${title}");
    wikiModel.setUp();
    String[] listOfTitleStrings = { "Tom Hanks" };
    User user = new User("", "", "http://en.wikipedia.org/w/api.php");
    user.login();
    List<Page> listOfPages = user.queryContent(listOfTitleStrings);
    for (Page page : listOfPages) {
      String renderedHTML = wikiModel.render(page.getCurrentContent());
      System.out.println(renderedHTML);
      break;
    }
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.