MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=checktoken

(main | checktoken)

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

Paramètres :
type

Tipe de geton testat

Cal aquest paràmetre.
One of the following values: createaccount, csrf, login, patrol, rollback, userrights, watch
token

Geton de testar.

Cal aquest paràmetre.
maxtokenage

Temps maximum autorizat per l'utilizacion del geton, en segondas.

Tipus: enter
Example:
Testar la validitat d'un geton de csrf.
api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]