Ajuda API da MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=checktoken

(main | checktoken)
  • This module requires read rights.
  • Source: MediaWiki
  • Licença: GPL-2.0+

Check the validity of a token from action=query&meta=tokens.

Parâmetros:
type

Type of token being tested.

Este parâmetro é obrigatório.
One value: csrf, patrol, rollback, userrights, watch
token

Token to test.

Este parâmetro é obrigatório.
maxtokenage

Maximum allowed age of the token, in seconds.

Type: integer
Exemplo:
Test the validity of a csrf token.
api.php?action=checktoken&type=csrf&token=123ABC