مساعدة API ميدياويكي

هذه صفحة توثيق ميدياويكي API التي تم إنشاؤها تلقائيا.

وثائق وأمثلة: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=centralauthtoken

(main | centralauthtoken)
  • هذه الوحدة تتطلب صلاحيات القراءة.
  • المصدر:CentralAuth
  • الترخيص: GPL-2.0-or-later

جلب centralauthtoken لتقديم طلب مصادق إلى ويكي مرفق.

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.