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.

Parametro:
type

Tipi di token da richiedere.

Valori (separati da | o alternativa): createaccount, csrf, login, patrol, rollback, userrights, watch
Default: csrf
Esempi:
Recupera un token csrf (il predefinito).
api.php?action=query&meta=tokens [apri in una sandbox]
Retrieve a watch token and a patrol token.
api.php?action=query&meta=tokens&type=watch|patrol [apri in una sandbox]