Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=tokens
(main | tokens)
- Mô đun này đã bị phản đối.
- Mô đun này cần quyền đọc.
- Source: MediaWiki
- License: GPL-2.0+
Get tokens for data-modifying actions.
This module is deprecated in favor of action=query&meta=tokens.
Tham số:
- type
Types of token to request.
- Các giá trị (phân tách bằng |): block, delete, edit, email, import, move, options, patrol, protect, unblock, watch
- Mặc định: edit
Các ví dụ:
- Retrieve an edit token (the default).
- api.php?action=tokens
- Retrieve an email token and a move token.
- api.php?action=tokens&type=email|move