MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

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
Predefinito: 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]