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)
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0-or-later
ตรวจสอบความถูกต้องของโทเค็นจาก action=query&meta=tokens
Parameters:
- 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
Example:
- ตรวจสอบความถูกต้องของโทเค็น csrf
- api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]