프로퍼티 | 타입 | 설명 | |
---|---|---|---|
LoginSessions | LoginInfo>.Dictionary |
메소드 | 설명 | |
---|---|---|
DefaultErrorHandler ( string message ) : void | ||
DefaultErrorHandler ( string message, MessageBoxIcon icon ) : void | ||
GetApi ( Wiki wiki, string queryString, object userToken, MorebitsDotNetGetSuccess onSuccess ) : void |
Makes an HTTP GET request to the specified MediaWiki API endpoint.
|
|
GetDomain ( Wiki w ) : string | ||
GetProtocol ( ) : string | ||
LogIn ( Wiki wiki, string userName, string password, MorebitsDotNetLoginSuccess onSuccess, MorebitsDotNetError onError ) : void |
Logs into the specified MediaWiki API endpoint.
|
|
PostApi ( Wiki wiki, |
||
PostApi ( Wiki wiki, |
||
PostApi ( Wiki wiki, |
Makes an HTTP request to the specified MediaWiki API endpoint.
|
|
UploadFile ( Wiki wiki, |
||
UploadFile ( Wiki wiki, |
Uploads a file by making an HTTP POST request to the specified MediaWiki API endpoint.
|
메소드 | 설명 | |
---|---|---|
GetApiUri ( Wiki w ) : string | ||
PostApi ( Wiki wiki, |
||
TimeoutCallback ( object state, bool timedOut ) : void |
public static DefaultErrorHandler ( string message ) : void | ||
message | string | |
리턴 | void |
public static DefaultErrorHandler ( string message, MessageBoxIcon icon ) : void | ||
message | string | |
icon | MessageBoxIcon | |
리턴 | void |
public static GetApi ( Wiki wiki, string queryString, object userToken, MorebitsDotNetGetSuccess onSuccess ) : void | ||
wiki | Wiki | The |
queryString | string | The query string, to be appended to the URL after a "?" character. /// No escaping is performed. |
userToken | object | A custom object that is passed on to the callback, for state tracking. /// Set to null if not required. |
onSuccess | MorebitsDotNetGetSuccess | A function that will be called when the request is successful.
/// The function is passed the string of response received, as well as the value of |
리턴 | void |
public static LogIn ( Wiki wiki, string userName, string password, MorebitsDotNetLoginSuccess onSuccess, MorebitsDotNetError onError ) : void | ||
wiki | Wiki | The |
userName | string | The user name to use for the login attempt. |
password | string | The password to use for the login attempt. |
onSuccess | MorebitsDotNetLoginSuccess | A function that will be called when the login attempt is successful. |
onError | MorebitsDotNetError | A function that will be called when the login attempt fails. /// The function is passed the error message string as its only parameter. |
리턴 | void |
public static PostApi ( Wiki wiki, |
||
wiki | Wiki | |
query | ||
onSuccess | MorebitsDotNetPostSuccess | |
리턴 | void |
public static PostApi ( Wiki wiki, |
||
wiki | Wiki | |
query | ||
onSuccess | MorebitsDotNetPostSuccess | |
onError | MorebitsDotNetError | |
리턴 | void |
public static PostApi ( Wiki wiki, |
||
wiki | Wiki | The |
query | A dictionary of key-value pairs that represent the request parameters. | |
onSuccess | MorebitsDotNetPostSuccess | A function that will be called when the request is successful. /// The function is passed the XML response as its only parameter. |
onError | MorebitsDotNetError | A function that will be called when the request fails. /// The function is passed the error message string as its only parameter. |
method | string | The HTTP method to use. Use one of the constants in |
리턴 | void |
public static UploadFile ( Wiki wiki, |
||
wiki | Wiki | |
query | ||
file | byte | |
fileName | string | |
fileParamName | string | |
onSuccess | MorebitsDotNetPostSuccess | |
리턴 | void |
public static UploadFile ( Wiki wiki, |
||
wiki | Wiki | The |
query | A dictionary of key-value pairs that represent the request parameters. | |
file | byte | The file to upload, as a byte array of binary data. |
fileName | string | The name of the file to upload. |
fileParamName | string | The name (key) of the POST parameter whose value is the file data. |
onSuccess | MorebitsDotNetPostSuccess | A function that will be called when the request is successful. /// The function is passed the XML response as its only parameter. |
onError | MorebitsDotNetError | A function that will be called when the request fails. /// The function is passed the error message string as its only parameter. |
리턴 | void |