forked from MediaWiki-Bot/MediaWiki-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Where is api.php
Mike.lifeguard edited this page Aug 13, 2011
·
1 revision
You must know where api.php
is to properly configure MediaWiki::Bot
.
- Go to any page in your wiki.
Main Page
works nicely. - Click the "history" tab.
- Take everything from
index.php
to the end and replace it byapi.php
- If you see the API help documentation, it worked! If not, you should ask for help.
Given a URL like http://en.wikipedia.org/w/api.php
:
-
protocol
ishttp
-
host
isen.wikipedia.org
-
path
isw
Given a more complex URL like https://my.test.wiki.is.silly.net/mediawiki/wiki/2/ohaithar/w/api.php
:
-
protocol
ishttps
-
host
ismy.test.wiki.is.silly.net
-
path
ismediawiki/wiki/2/ohaithar/w
See documentation for new()
to proceed.