MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "batchcomplete": "",
    "query": {
        "authmanagerinfo": {
            "canauthenticatenow": "",
            "cancreateaccounts": "",
            "preservedusername": "",
            "requests": [
                {
                    "id": "WikimediaEvents\\UserLogin\\UserLoginInstrumentationAuthenticationRequest",
                    "metadata": {},
                    "required": "optional",
                    "provider": "WikimediaEvents\\UserLogin\\UserLoginInstrumentationAuthenticationRequest",
                    "account": "WikimediaEvents\\UserLogin\\UserLoginInstrumentationAuthenticationRequest",
                    "fields": {
                        "wmevents_userlogin_noscript": {
                            "type": "string",
                            "label": "",
                            "help": ""
                        }
                    }
                },
                {
                    "id": "MediaWiki\\Auth\\PasswordAuthenticationRequest",
                    "metadata": {},
                    "required": "primary-required",
                    "provider": "\u57fa\u4e8e\u5bc6\u7801\u7684\u8eab\u4efd\u9a8c\u8bc1",
                    "account": "",
                    "fields": {
                        "username": {
                            "type": "string",
                            "label": "\u7528\u6237\u540d",
                            "help": "\u7528\u4e8e\u8eab\u4efd\u9a8c\u8bc1\u7684\u7528\u6237\u540d\u3002"
                        },
                        "password": {
                            "type": "password",
                            "label": "\u5bc6\u7801",
                            "help": "\u7528\u4e8e\u8eab\u4efd\u9a8c\u8bc1\u7684\u5bc6\u7801\u3002",
                            "sensitive": ""
                        }
                    }
                },
                {
                    "id": "MediaWiki\\Extension\\OATHAuth\\Auth\\WebAuthnAuthenticationRequest",
                    "metadata": {},
                    "required": "primary-required",
                    "provider": "\u53cc\u91cd\u8eab\u4efd\u9a8c\u8bc1\uff08OATH\uff09\u3002",
                    "account": "",
                    "fields": {
                        "auth_info": {
                            "type": "hidden",
                            "value": "{\"challenge\":\"b57u3lsyR2vSZft0FFZhXwZggVmOtEHD2G0JbjPsOh0\",\"timeout\":86400000,\"rpId\":\"zh.wikiquote.org\",\"allowCredentials\":[],\"userVerification\":\"required\"}",
                            "label": "\u8ba4\u8bc1\u6570\u636e",
                            "help": "\u8eab\u4efd\u9a8c\u8bc1\u6570\u636e\u4f20\u9012\u7ed9\u5ba2\u6237\u7aef\u4ee5\u7528\u4e8e\u51ed\u8bc1\u68c0\u7d22"
                        },
                        "credential": {
                            "type": "hidden",
                            "value": "",
                            "label": "\u7528\u6237\u51ed\u8bc1",
                            "help": "\u57fa\u4e8e\u8eab\u4efd\u9a8c\u8bc1\u6570\u636e\u7684\u7528\u6237\u51ed\u8bc1"
                        }
                    }
                },
                {
                    "id": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
                    "metadata": {},
                    "required": "optional",
                    "provider": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
                    "account": "MediaWiki\\Auth\\RememberMeAuthenticationRequest",
                    "fields": {
                        "rememberMe": {
                            "type": "checkbox",
                            "label": "\u8bb0\u4f4f\u6211\u7684\u767b\u5f55\u72b6\u6001",
                            "help": "\u5bc6\u7801\u7684\u8bb0\u4f4f\u65f6\u95f4\u662f\u5426\u5e94\u8be5\u8d85\u8fc7\u4f1a\u8bdd\u7684\u957f\u5ea6\u3002",
                            "optional": ""
                        }
                    }
                }
            ]
        }
    }
}