MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
meta=tokens
- Fuente: MediaWiki
- Licencia: GPL-2.0+
Gets tokens for data-modifying actions.
Parámetro:
- type
Types of token to request.
- Valores (separados por |): createaccount, csrf, login, patrol, rollback, userrights, watch
- Predeterminado: csrf
Ejemplos:
- Retrieve a csrf token (the default).
- api.php?action=query&meta=tokens [open in sandbox]
- Retrieve a watch token and a patrol token.
- api.php?action=query&meta=tokens&type=watch|patrol [open in sandbox]