Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

meta=authmanagerinfo (ami)

(main | query | authmanagerinfo)

Pozyskuje informacje o aktualnym statusie poświadczenia.

Parametry:
Other general parameters are available.
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.

Jedna z następujących wartości: change, create, create-continue, link, link-continue, login, login-continue, remove, unlink
amireauthenticate

Add requests needed to reauthenticate for a security-sensitive operation. Must be used with amirequestsfor=login and while in a logged-in session. The value of the parameter is the operation name, which can be found in the reauthenticate error returned when trying the operation that needs reauthentication.

amimergerequestfields

Merge field information for all authentication requests into one array.

Typ: wartość boolowska (szczegóły)
amimessageformat

Format to use for returning messages.

Jedna z następujących wartości: html, none, raw, wikitext
Domyślnie: wikitext
Przykłady:
Fetch the requests that may be used when beginning a login.
api.php?action=query&meta=authmanagerinfo&amirequestsfor=login [otwórz w brudnopisie]
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 [otwórz w brudnopisie]
Test whether authentication is sufficient for action foo.
api.php?action=query&meta=authmanagerinfo&amisecuritysensitiveoperation=foo [otwórz w brudnopisie]