-
-
Notifications
You must be signed in to change notification settings - Fork 16
[MediaWiki] Advanced usages
Chen edited this page Nov 9, 2017
·
5 revisions
Private wikis are those wikis where anonymous users have no read access. This can cause problem for ordinary login procedure, because the client can virtually invoke nothing other than action=login
. To address the issue, you can use the alternative constructor signature to login to the wiki site before performing any other querying requests
public WikiSite(
IWikiClient wikiClient,
SiteOptions options,
string userName,
string password
)
As have mentioned in Getting Started page, you need to wait for the initialization to complete using await wikiSite.Initialization
, before proceeding with any other operations. If the login failed, you will receive the exception via Initialization
task.