මාධ්‍යවිකි API උදවු

මෙය ස්වයං-ජනිත මාධ්‍යවිකි API ප්‍රලේඛන පිටුවකි.

ප්‍රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API

action=checktoken

(main | checktoken)
  • මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්‍ය වේ.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

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

පරාමිතීන්:
Other general parameters are available.
type

Type of token being tested.

This parameter is required.
එක් වටිනාකමක්: createaccount, csrf, login, patrol, rollback, userrights, watch
token

Token to test.

This parameter is required.
maxtokenage

Maximum allowed age of the token, in seconds.

Type: integer
උදාහරණය:
Test the validity of a csrf token.
api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]
"https://si.wiktionary.beta.math.wmflabs.org/wiki/විශේෂ:ApiHelp" වෙතින් සම්ප්‍රවේශනය කෙරිණි