Daniel Barrett schreef: > I’m using the MediaWiki API for the first time, with MediaWiki 1.12.0 > and 1.13 alpha. When I perform a “move” or “delete” like this: > _http://__mywiki__/w/api.php?action=move&from=newpage&to=newpage2&reason=Testing+it%21&token=99835fa819f666114054d7b6210a1bc5%2B%5C_ > > <http://mywiki/w/api.php?action=move&from=newpage&to=newpage2&reason=Testing+it%21&token=99835fa819f666114054d7b6210a1bc5%2B%5C> > using the “move token” I received from: > _http://__mywiki__/w/api.php?action=query&prop=info&intoken=move&titles=newpage&format=xml_ > > <http://mywiki/w/api.php?action=query&prop=info&intoken=move&titles=newpage&format=xml> > I always get the result for the first URL (action=move): > unknown_action: Unrecognised value for parameter 'action' That's because you have to explicitly enable $wgEnableWriteAPI = true; in LocalSettings.php, or action=move doesn't exist (see also api.php?action=help , where action=move doesn't show up).
Roan Kattouw (Catrope) _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
