Ævar Arnfjörð Bjarmason wrote:
Maybe I'm missing something (wouldn't be the first time) but couldn't you just parse the page for the edittoken? It's pretty easy, for example this Perl code which takes the scalar $editpage containing page retrevied with action=edit would return the token as a variable:
(my $wpEditToken) = $editpage =~ m#(?<=<input).*([\w\d]{32}).*(?=wpEditToken)#g;
P.s.: not that I wouldn't mind something like a general robot interface, in fact, I voulenteer to (help) write one (if thats something the people with CVS access would be willing to accept that is).
This would be a huge help to me, since I have very little experience with PHP. I'm thinking some kind of webservices-like API that follows REST principles (ie not SOAP!)
I can already do most things on the client, but a few things are needed to allow alternative interfaces to fly:
* action=getedittoken - returns just an edit token * Special:Random&action=raw gives the raw content of a random page * Special:Export?title=RecentChanges gives an XML list of recent changes
None of these things need any major architectural changes.
Jim