MediaWiki API 幫助

這是自動生成的MediaWiki API文檔頁面。

文檔和例子:https://www.mediawiki.org/wiki/API:Main_page/zh

meta=authmanagerinfo (ami)

main | query | authmanagerinfo
  • 來源:MediaWiki
  • 許可協議:GPL-2.0+

Retrieve information about the current authentication status.

參數:
amisecuritysensitiveoperation

Test whether the user's current authentication status is sufficient for the specified security-sensitive operation.

amirequestsfor

Fetch information about the authentication requests needed for the specified authentication action.

以下值中的一個:login、login-continue、create、create-continue、link、link-continue、change、remove、unlink
amimergerequestfields

Merge field information for all authentication requests into one array.

類型:布爾值(詳細信息
amimessageformat

Format to use for returning messages.

以下值中的一個:html、wikitext、raw、none
默認:wikitext
例子:
Fetch the requests that may be used when beginning a login.
api.php?action=query&meta=authmanagerinfo&amirequestsfor=login [在沙盒中打開]
Fetch the requests that may be used when beginning a login, with form fields merged.
api.php?action=query&meta=authmanagerinfo&amirequestsfor=login&amimergerequestfields=1 [在沙盒中打開]
Test whether authentication is sufficient for action foo.
api.php?action=query&meta=authmanagerinfo&amisecuritysensitiveoperation=foo [在沙盒中打開]