Hello,
I was wondering if the API support posting / editing wiki article. I am 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
Thanks,
Ben
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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).
- -- Daniel Cannon (AmiDaniel)
http://amidaniel.com cannon.danielc@gmail.com
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.
On 8/23/07, Benjamin Lauziere blauziere@gmail.com wrote:
Hello,
I was wondering if the API support posting / editing wiki article. I am 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
Thanks,
Ben
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
It's being worked on. See http://www.mediawiki.org/wiki/Talk:API:Changing_wiki_content and http://svn.wikimedia.org/viewvc/mediawiki/branches/apiedit/phase3/.
mediawiki-api@lists.wikimedia.org