Свойство | Тип | Описание | |
---|---|---|---|
AdjustCookies | void | ||
ApiEdit | System | ||
CheckForErrors | |||
CheckForErrors | void | ||
EnsureHtmlHeadersLoaded | void | ||
ExpandRelativeUrls | string | ||
customXertificateValidation | bool |
Метод | Описание | |
---|---|---|
Abort ( ) : void |
|
|
ApiEdit ( string url ) : System |
Initializes a new instance of the ApiEdit class.
|
|
ApiEdit ( string url, bool usePHP5 ) : System |
Initializes a new instance of the ApiEdit class.
|
|
Clone ( ) : IApiEdit | ||
Delete ( string title, string reason ) : void | ||
Delete ( string title, string reason, bool watch ) : void | ||
ExpandTemplates ( string title, string text ) : string | ||
HttpGet ( string url ) : string |
Performs a HTTP request
|
|
Login ( string username, string password ) : void | ||
Login ( string username, string password, string domain ) : void | ||
Logout ( ) : void | ||
Move ( string title, string newTitle, string reason ) : void | ||
Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect ) : void | ||
Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect, bool watch ) : void | ||
Open ( string title ) : string |
Opens the wiki page for editing
|
|
Open ( string title, bool resolveRedirects ) : string |
Opens the wiki page for editing
|
|
ParseApi ( string>.Dictionary |
||
Preview ( string title, string text ) : string | ||
Protect ( string title, string reason, TimeSpan expiry, string edit, string move ) : void | ||
Protect ( string title, string reason, TimeSpan expiry, string edit, string move, bool cascade, bool watch ) : void | ||
Protect ( string title, string reason, string expiry, string edit, string move ) : void | ||
Protect ( string title, string reason, string expiry, string edit, string move, bool cascade, bool watch ) : void | ||
QueryApi ( string queryParameters ) : string | ||
QueryApiJson ( string queryParameters ) : string | ||
RefreshUserInfo ( ) : void | ||
Reset ( ) : void |
Resets all internal variables, discarding edit tokens and so on, but does not logs off
|
|
Rollback ( string title, string user ) : void | ||
Save ( string pageText, string summary, bool minor, WatchOptions watch ) : SaveInfo | ||
Unwatch ( string title ) : void | ||
Watch ( string title ) : void | ||
WatchAction ( string title, bool unwatch ) : void |
Метод | Описание | |
---|---|---|
AppendOptions ( string>.Dictionary |
|
|
BoolToParam ( bool value ) : string |
|
|
BuildQuery ( string>.Dictionary |
|
|
BuildUrl ( string>.Dictionary |
|
|
BuildUrl ( string>.Dictionary |
|
|
CreateRequest ( string url ) : |
|
|
CreateXmlReader ( string result ) : XmlReader | ||
GetResponseString ( |
|
|
HttpGet ( string>.Dictionary |
Performs a HTTP request
|
|
HttpGet ( string>.Dictionary |
Performs a HTTP request
|
|
HttpPost ( string>.Dictionary |
|
|
HttpPost ( string>.Dictionary |
|
|
MD5 ( byte input ) : string |
Computes the MD5 sum of a byte array
|
|
MD5 ( string input ) : string |
Computes the MD5 sum of a string
|
|
NamedTitles ( string paramName ) : string |
|
|
SetBasicAuthHeader ( WebRequest req, string userName, string userPassword ) : WebRequest |
Source: http://blog.kowalczyk.info/article/Forcing-basic-http-authentication-for-HttpWebReq.html |
|
Titles ( ) : string |
|
|
WatchOptionsToParam ( WatchOptions watch ) : string |
Метод | Описание | |
---|---|---|
AdjustCookies ( ) : void |
This is a hack required for some multilingual Wikimedia projects, where CentralAuth returns cookies with a redundant domain restriction.
|
|
ApiEdit ( ) : System |
|
|
CheckForErrors ( string xml, string action ) : |
Checks the XML returned by the server for error codes and throws an appropriate exception
|
|
CheckForErrors ( string xml ) : void |
Checks the XML returned by the server for error codes and throws an appropriate exception
|
|
EnsureHtmlHeadersLoaded ( ) : void |
Loads wiki's UI HTML and scrapes everything we need to make correct previews
|
|
ExpandRelativeUrls ( string html ) : string | ||
customXertificateValidation ( object sender, X509Certificate cert, X509Chain chain, System error ) : bool |
public ApiEdit ( string url ) : System | ||
url | string | Path to scripts on server |
Результат | System |
public ApiEdit ( string url, bool usePHP5 ) : System | ||
url | string | Path to scripts on server |
usePHP5 | bool | Whether a .php5 extension is to be used |
Результат | System |
protected AppendOptions ( string>.Dictionary |
||
request | string>.Dictionary | |
options | ActionOptions | |
Результат | void |
protected static BoolToParam ( bool value ) : string | ||
value | bool | |
Результат | string |
protected static BuildQuery ( string>.Dictionary |
||
request | string>.Dictionary | |
Результат | string |
protected BuildUrl ( string>.Dictionary |
||
request | string>.Dictionary | |
Результат | string |
protected BuildUrl ( string>.Dictionary |
||
request | string>.Dictionary | |
options | ActionOptions | |
Результат | string |
protected CreateRequest ( string url ) : |
||
url | string | |
Результат |
protected CreateXmlReader ( string result ) : XmlReader | ||
result | string | |
Результат | XmlReader |
public Delete ( string title, string reason ) : void | ||
title | string | |
reason | string | |
Результат | void |
public Delete ( string title, string reason, bool watch ) : void | ||
title | string | |
reason | string | |
watch | bool | |
Результат | void |
public ExpandTemplates ( string title, string text ) : string | ||
title | string | |
text | string | |
Результат | string |
protected GetResponseString ( |
||
req | ||
Результат | string |
protected HttpGet ( string>.Dictionary |
||
request | string>.Dictionary | |
Результат | string |
protected HttpGet ( string>.Dictionary |
||
request | string>.Dictionary | |
options | ActionOptions | |
Результат | string |
protected HttpPost ( string>.Dictionary |
||
get | string>.Dictionary | |
post | string>.Dictionary | |
Результат | string |
protected HttpPost ( string>.Dictionary |
||
get | string>.Dictionary | |
post | string>.Dictionary | |
options | ActionOptions | |
Результат | string |
public Login ( string username, string password ) : void | ||
username | string | |
password | string | |
Результат | void |
public Login ( string username, string password, string domain ) : void | ||
username | string | |
password | string | |
domain | string | |
Результат | void |
protected static MD5 ( byte input ) : string | ||
input | byte | Byte array to get MD5 sum of |
Результат | string |
protected static MD5 ( string input ) : string | ||
input | string | String to get MD5 sum of |
Результат | string |
public Move ( string title, string newTitle, string reason ) : void | ||
title | string | |
newTitle | string | |
reason | string | |
Результат | void |
public Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect ) : void | ||
title | string | |
newTitle | string | |
reason | string | |
moveTalk | bool | |
noRedirect | bool | |
Результат | void |
public Move ( string title, string newTitle, string reason, bool moveTalk, bool noRedirect, bool watch ) : void | ||
title | string | |
newTitle | string | |
reason | string | |
moveTalk | bool | |
noRedirect | bool | |
watch | bool | |
Результат | void |
protected static NamedTitles ( string paramName ) : string | ||
paramName | string | |
Результат | string |
public Open ( string title ) : string | ||
title | string | The wiki page title |
Результат | string |
public Open ( string title, bool resolveRedirects ) : string | ||
title | string | The wiki page title |
resolveRedirects | bool | |
Результат | string |
public ParseApi ( string>.Dictionary |
||
queryParameters | string>.Dictionary | |
Результат | string |
public Preview ( string title, string text ) : string | ||
title | string | |
text | string | |
Результат | string |
public Protect ( string title, string reason, TimeSpan expiry, string edit, string move ) : void | ||
title | string | |
reason | string | |
expiry | TimeSpan | |
edit | string | |
move | string | |
Результат | void |
public Protect ( string title, string reason, TimeSpan expiry, string edit, string move, bool cascade, bool watch ) : void | ||
title | string | |
reason | string | |
expiry | TimeSpan | |
edit | string | |
move | string | |
cascade | bool | |
watch | bool | |
Результат | void |
public Protect ( string title, string reason, string expiry, string edit, string move ) : void | ||
title | string | |
reason | string | |
expiry | string | |
edit | string | |
move | string | |
Результат | void |
public Protect ( string title, string reason, string expiry, string edit, string move, bool cascade, bool watch ) : void | ||
title | string | |
reason | string | |
expiry | string | |
edit | string | |
move | string | |
cascade | bool | |
watch | bool | |
Результат | void |
public QueryApi ( string queryParameters ) : string | ||
queryParameters | string | |
Результат | string |
public QueryApiJson ( string queryParameters ) : string | ||
queryParameters | string | |
Результат | string |
public Rollback ( string title, string user ) : void | ||
title | string | |
user | string | |
Результат | void |
public Save ( string pageText, string summary, bool minor, WatchOptions watch ) : SaveInfo | ||
pageText | string | |
summary | string | |
minor | bool | |
watch | WatchOptions | |
Результат | SaveInfo |
protected SetBasicAuthHeader ( WebRequest req, string userName, string userPassword ) : WebRequest | ||
req | WebRequest | |
userName | string | |
userPassword | string | |
Результат | WebRequest |
public WatchAction ( string title, bool unwatch ) : void | ||
title | string | |
unwatch | bool | |
Результат | void |
protected static WatchOptionsToParam ( WatchOptions watch ) : string | ||
watch | WatchOptions | |
Результат | string |