Помоћ око Медијавикијевог API-ја

Ово је аутоматски генерисана документација за Медијавики API

Документација и примери: -{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-

action=centralauthtoken

(main | centralauthtoken)
  • This module requires read rights.
  • Извор: CentralAuth
  • Лиценца: GPL-2.0-or-later

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.

Пример:
Добављање токена за централну потврду идентитета
api.php?action=centralauthtoken [open in sandbox]