Даведка MediaWiki API

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)

Праверыць карэктнасьць токену з action=query&meta=tokens.

Specific parameters:
Other general parameters are available.
type

Тып токену, які правяраецца.

This parameter is required.
One of the following values: createaccount, csrf, login, patrol, rollback, userrights, watch
token

Токен для тэсту.

This parameter is required.
maxtokenage

Максымальна дазволены ўзрост токену ў сэкундах.

Type: integer
Прыклад:
Праверыць карэктнасьць csrf-токену.
api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]