MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=tokens
(main | tokens)
- This module is deprecated.
- Voor deze module zijn leesrechten nodig.
- Bron: MediaWiki
- Licentie: GPL-2.0-or-later
Get tokens for data-modifying actions.
This module is deprecated in favor of action=query&meta=tokens.
Parameter:
- type
Types of token to request.
- Waarden (gescheiden met | of alternatief): block, createaccount, csrf, delete, edit, email, import, login, move, options, patrol, protect, rollback, unblock, userrights, watch
- Standaard: edit
Voorbeelden:
- Retrieve an edit token (the default).
- api.php?action=tokens [open in de zandbak]
- Retrieve an email token and a move token.
- api.php?action=tokens&type=email|move [open in de zandbak]