MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=checktoken

(main | checktoken)
  • Este módulo requiere permisos de lectura.

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

Parámetros:
type

Type of token being tested.

Este parámetro es obligatorio.
Un valor: csrf, patrol, rollback, userrights, watch
token

Token to test.

Este parámetro es obligatorio.
maxtokenage

Maximum allowed age of the token, in seconds.

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