MediaWiki API 結果
這是JSON格式的HTML實現。HTML對除錯很有用,但不適合應用程式使用。
指定format參數以變更輸出格式。要查看JSON格式的非HTML實現,設定format=json。
{
"batchcomplete": "",
"query": {
"blocks": [
{
"id": 12,
"user": "127.0.0.1",
"by": "Xiplus",
"timestamp": "2017-03-25T08:12:20Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 11,
"user": "192.168.8.0/24",
"by": "Xiplus",
"timestamp": "2017-03-25T08:10:34Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 10,
"user": "192.168.7.0/24",
"by": "Xiplus",
"timestamp": "2016-12-18T05:25:52Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 8,
"user": "192.168.9.0/24",
"by": "Xiplus",
"timestamp": "2016-12-17T13:45:37Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 7,
"user": "192.168.5.0/24",
"by": "Xiplus",
"timestamp": "2016-12-17T13:45:06Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 5,
"user": "192.168.3.0/24",
"by": "Xiplus",
"timestamp": "2016-12-17T13:32:01Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 4,
"user": "192.168.4.0/24",
"by": "Xiplus",
"timestamp": "2016-12-17T13:21:19Z",
"expiry": "infinity",
"reason": "{{Schoolblock}}",
"anononly": "",
"allowusertalk": ""
},
{
"id": 3,
"user": "\u533f\u540d\u4f7f\u7528\u8005",
"by": "Xiplus",
"timestamp": "2016-03-27T01:59:41Z",
"expiry": "infinity",
"reason": "\u8aa4\u5c0e\u7684\u7528\u6236\u540d",
"allowusertalk": ""
},
{
"id": 1,
"user": "Maruikki",
"by": "Sylveon",
"timestamp": "2015-10-26T12:24:24Z",
"expiry": "infinity",
"reason": "\u50c5\u6563\u767c\u5ee3\u544a/\u5ba3\u50b3\u7684\u7528\u6236",
"allowusertalk": ""
}
]
}
}