Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
action=tokens
(main | tokens)
- Modul ini sudah lapuk.
 - Modul ini memerlukan hak membaca.
 - Source: MediaWiki
 - License: GPL-2.0-or-later
 
Get tokens for data-modifying actions.
This module is deprecated in favor of action=query&meta=tokens.
Parameter:
- type
 Types of token to request.
- Values (separate with | or alternative): block, createaccount, csrf, delete, edit, email, import, login, move, options, patrol, protect, rollback, unblock, userrights, watch
 - Asal: edit
 
Contoh-contoh:
- Retrieve an edit token (the default).
 - api.php?action=tokens [open in sandbox]
 - Retrieve an email token and a move token.
 - api.php?action=tokens&type=email|move [open in sandbox]