info.bliki.api.query
Class Edit

java.lang.Object
  extended by info.bliki.api.query.RequestBuilder
      extended by info.bliki.api.query.Edit

public class Edit
extends RequestBuilder

Query for creation and editing pages. This module requires read rights. This module requires write rights. This module only accepts POST requests. Parameters: title - Page title section - Section number. 0 for the top section, 'new' for a new section text - Page content token - Edit token. You can get one of these through prop=info summary - Edit summary. Also section title when section=new minor - Minor edit notminor - Non-minor edit bot - Mark this edit as bot basetimestamp - Timestamp of the base revision (gotten through prop=revisions&rvprop=timestamp). Used to detect edit conflicts; leave unset to ignore conflicts. starttimestamp - Timestamp when you obtained the edit token. Used to detect edit conflicts; leave unset to ignore conflicts. recreate - Override any errors about the article having been deleted in the meantime createonly - Don't edit the page if it exists already nocreate - Throw an error if the page doesn't exist captchaword - Answer to the CAPTCHA captchaid - CAPTCHA ID from previous request watch - Add the page to your watchlist unwatch - Remove the page from your watchlist md5 - The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct prependtext - Add this text to the beginning of the page. Overrides text. Don't use together with section: that won't do what you expect. appendtext - Add this text to the end of the page. Overrides text undo - Undo this revision. Overrides text, prependtext and appendtext undoafter - Undo all revisions from undo to this one. If not set, just undo one revision TODO: add suuport for remain parameters


Method Summary
static Edit create()
           
 Edit section(int section)
           
 Edit text(java.lang.String text)
           
 Edit title(java.lang.String title)
           
 Edit token(java.lang.String token)
           
 
Methods inherited from class info.bliki.api.query.RequestBuilder
action, clear, containsKey, containsValue, entrySet, equals, format, get, getParameters, hashCode, isEmpty, keySet, maxage, maxlag, put, putAll, putPipedString, putPipedString, remove, requestid, size, smaxage, toPipedString, toPipedString, toString, values, version
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static Edit create()

title

public Edit title(java.lang.String title)

section

public Edit section(int section)

text

public Edit text(java.lang.String text)

token

public Edit token(java.lang.String token)


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.