Ajuda API da MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
meta=tokens
- This module requires read rights.
- Source: MediaWiki
- Licença: GPL-2.0+
Gets tokens for data-modifying actions.
Parâmetro:
- type
Types of token to request.
- Valores (separar com |): csrf, patrol, rollback, userrights, watch
- Padrão: csrf
Exemplos:
- Retrieve a csrf token (the default).
- api.php?action=query&meta=tokens
- Retrieve a watch token and a patrol token.
- api.php?action=query&meta=tokens&type=watch|patrol