MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=tokens
(main | tokens)
- Denna modul är föråldrad.
- Denna modul kräver läsrättigheter.
- Source: MediaWiki
- License: GPL-2.0+
Hämta nycklar för datamodifierande handlingar.
This module is deprecated in favor of action=query&meta=tokens.
Parametrar:
- type
Types of token to request.
- Värden (separerade med | eller alternativ): block, createaccount, csrf, delete, edit, email, import, login, move, options, patrol, protect, rollback, unblock, userrights, watch
- Default: edit
- nocache
- (no description)
- Type: boolean (details)
- prop_append
- (no description)
- Type: boolean (details)
Examples:
- Retrieve an edit token (the default).
- api.php?action=tokens [open in sandbox]
- Retrieve an email token and a move token.
- api.php?action=tokens&type=email|move [open in sandbox]