MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json。
{
"error": {
"code": "param-missing",
"info": "Either provide the Item \"ids\" or pairs of \"sites\" and \"titles\" for corresponding page",
"messages": [
{
"name": "wikibase-api-illegal-ids-or-sites-titles-selector",
"parameters": [],
"html": {
"*": "\u70ba\u5c0d\u61c9\u9801\u9762\u63d0\u4f9b\u300cids\u300d\uff0c\u6216\u662f\u4e00\u7d44\u7684\u300csites\u300d\u8207\u300ctitles\u300d"
}
}
],
"*": "See https://unitedbook.votum.me/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
},
"warnings": {
"main": {
"*": "Security Warning: \"$wgDebugAPI\" is enabled."
},
"wbgetentities": {
"*": "Unrecognized value for parameter \"sites\": enwiki"
}
}
}