Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API

action=checktoken

(main | checktoken)
  • Ten moduł wymaga praw odczytu.

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

Parametry:
type

Type of token being tested.

Ten parametr jest wymagany.
Jedna wartość: csrf, patrol, rollback, userrights, watch
token

Token to test.

Ten parametr jest wymagany.
maxtokenage

Maximum allowed age of the token, in seconds.

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