Daniel Cannon wrote: > Benjamin Lauziere wrote: >> Hello, >> >> I was wondering if the API support posting / editing wiki article. I am > > No, it does not. We are working on it though :) > >> using the SVN trunk version of MediaWiki (from 08/23/07) and when I try >> a request like this I get this error: >> >> error code="unknown_action" info="Unrecognised value for parameter 'action' >> >> The request: >> >> api.php?title=Bookmarks&revid=15&summary=A+summary&content=Blah%21%21&edittoken=%2B%5C&action=submit > > Yes, I'm not familiar with any such parameters .. thus the error. For > the time being, you need to submit pages using &action=edit (through the > standard interface).
You need action=submit, and use POST method to index.php action=submit&title=Bookmarks&wpSummary=A+summary&wpTextbox1=Blah%21%21&edittoken=%2B%5C&action=submit&wpSave=Save&wpStarttime=20080000000000&wpEdittime=LAST_TIME_IT_WAS_EDITED&wpEditToken=a565665853 However, i recommend you using multipart/form-data instead of application/x-www-form-urlencoded when you're sending large chunks of text. _______________________________________________ Mediawiki-api mailing list [email protected] http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
