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

meta=tokens

(main | query | tokens)

Gets tokens for data-modifying actions.

Specifični parameter:
Na voljo so tudi drugi splošni parametri.
type

Types of token to request.

Values (separate with | or alternative): createaccount, csrf, login, patrol, rollback, userrights, watch
To specify all values, use *.
Privzeto: csrf
Zgleda:
Retrieve a csrf token (the default).
api.php?action=query&meta=tokens [open in sandbox]
Pridobite žeton opazovanja in žeton pregledovanja.
api.php?action=query&meta=tokens&type=watch|patrol [open in sandbox]