MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/API
meta=authmanagerinfo <pre>(ami) </pre>
- 来源: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 [在沙盒中打开]