Can't generate edit Token

Jump to: navigation, search

When I send the following request:

api.php?action=tokens&format=xml&type=edit

to obtain an edit token, I receive the following error:

<api> <error code="unknown_action" info="Unrecognized value for parameter 'action': tokens"/> </api>

I have already allowed API, and editing through API.

169.228.177.17323:32, 11 September 2012

action=tokens is a new api module. Perhaps your version of MediaWiki is too old. Does action=tokens appear as a choice in the api.php?action=help output?

Bawolff (talk)18:27, 13 September 2012

I'm using MediaWiki version 1.19.2 and the 'tokens' action isn't available. I'm trying to find a newer version, but this seems to be the latest available at this time. I feel like I'm missing something since the API:Edit page explicitly says to use the tokens action.

69.245.103.3020:46, 25 September 2012

For now, I'm using the old way of retrieving Edit Tokens with the query action. You can review the History of the API:Edit page for details.

69.245.103.3020:50, 25 September 2012

Yep, I can confirm. The "old way" works, the use of action=tokens seems to be broken in 1.19.2.

80.66.221.821:50, 25 October 2012