Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki Action API documentation page.

action=centralauthtoken

(main | centralauthtoken)

Fetch a centralauthtoken for making an authenticated request to an attached wiki.

Returns a token that can be use to authenticate API requests on other wikis. For action API requests, put it in the centralauthtoken GET parameter. For REST API requests, add an Authorization: CentralAuthToken {token} header. In MediaWiki frontend logic, you can use the mediawiki.ForeignApi ResourceLoader module.

Ví dụ:
Lấy một centralauthtoken
api.php?action=centralauthtoken [open in sandbox]