Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

Documentation and examples:


(main | query | tokens)

Gets tokens for data-modifying actions.

Tham số:

Types of token to request.

Các giá trị (phân tách bằng |): createaccount, csrf, login, patrol, rollback, userrights, watch
Mặc định: csrf
Các ví dụ:
Retrieve a csrf token (the default).
api.php?action=query&meta=tokens [open in sandbox]
Retrieve a watch token and a patrol token.
api.php?action=query&meta=tokens&type=watch|patrol [open in sandbox]