Hi Kelly,
On 7/27/07, Kelly Jones <kelly.terry.jones(a)gmail.com> wrote:
Is there a FAQ or more docs on MediaWiki's API?
The info I found:
http://www.mediawiki.org/wiki/API
http://en.wikipedia.org/w/api.php
seems minimal? My questions:
Yes, that is everything we have so far. You are more than welcome to
edit
http://www.mediawiki.org/wiki/API and make it better :)
% I use snownews and need a single URL to see my watchlist on my
favorite MediaWiki, but this fails w/ an "internal server error":
http://wiki.lspace.org/api.php?action=login&lgname=kellyterryjones&…
I can get to my watchlist using:
curl -c cookies.txt -O
'http://wiki.lspace.org/api.php?action=login&lgname=kellyterryjones&lgpassword=stillnotmypassword
curl -b cookies.txt -O 'http://wiki.lspace.org/api.php?action=feedwatchlist'
but it's a two-step process, and that won't work w/ snownews.
We should at some point add an ability to login and get a watchlist in
one call. My biggest concern is that is not very secure - passing your
password in the url instead of the post.
% Can I edit pages w/ the MediaWiki API or is it for
queries only?
Not at present, working on that.
query.php is an extension - it is up to the site to enable that
extension. All mediawiki sites have it enabled.
% How do I convice a MediaWiki that I'm a bot (and
thus increase my aplimit)?
Your account must get a bot flag on that wiki.
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api