Ajuda API da MediaWiki

Esta é uma página de documentação API do MediaWiki gerada automaticamente.

Documentação e exemplos: https://www.mediawiki.org/wiki/API

action=checktoken

(main | checktoken)
  • Este módulo requer direitos de leitura.
  • Fonte: 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.
Um dos seguintes valores: createaccount, csrf, login, 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 [abrir na página de testes]
Obtida de "http://pt-I.demopaedia.org/wiki/Especial:ApiHelp"