עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

action=checktoken

(main | checktoken)
  • יחידה זו דורשת הרשאות קריאה.

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

פרמטרים:
type

Type of token being tested.

פרמטר זה נדרש.
ערך אחד: csrf, patrol, rollback, userrights, watch
token

Token to test.

פרמטר זה נדרש.
maxtokenage

Maximum allowed age of the token, in seconds.

דוגמה:
Test the validity of a csrf token.
api.php?action=checktoken&type=csrf&token=123ABC