Difference between revisions of "Examples"

From BITPlan mediawiki-japi Wiki
Jump to navigation Jump to search
(Created page with "=== Sample query:get a single page === http://www.mediawiki.org/wiki/API:Query#Sample_query <source lang='java'> Mediawiki wiki=new Mediawiki("http://en.wikipedia.org"); St...")
 
Line 3: Line 3:
  
 
<source lang='java'>
 
<source lang='java'>
Mediawiki wiki=new Mediawiki("http://en.wikipedia.org");
+
Mediawiki wiki=new Mediawiki("http://en.wikipedia.org");
String content=wiki.getPageContent("Main Page");
+
String content=wiki.getPageContent("Main Page");
 
</source>
 
</source>

Revision as of 16:15, 3 January 2015

Sample query:get a single page

http://www.mediawiki.org/wiki/API:Query#Sample_query

Mediawiki wiki=new Mediawiki("http://en.wikipedia.org");
String content=wiki.getPageContent("Main Page");