Hi,
I want to see rc from 2007-10-09 23:59:59 back to 23:59:00 on pl.wikipedia:
http://pl.wikipedia.org/w/api.php? action=query&list=recentchanges&rcstart=20071009235959&rcstop=2007100923 5900&rcprop=timestamp
<?xml version="1.0" encoding="utf-8"?> <api> <query-continue> <recentchanges rcstart="2007-10-09T23:57:33Z" /> </query-continue> <query> <recentchanges> <rc type="0" timestamp="2007-10-09T23:59:52Z" /> <rc type="0" timestamp="2007-10-09T23:59:45Z" /> <rc type="0" timestamp="2007-10-09T23:58:52Z" /> <rc type="0" timestamp="2007-10-09T23:58:44Z" /> <rc type="0" timestamp="2007-10-09T23:58:37Z" /> <rc type="0" timestamp="2007-10-09T23:58:32Z" /> <rc type="1" timestamp="2007-10-09T23:58:29Z" /> <rc type="0" timestamp="2007-10-09T23:58:15Z" /> <rc type="0" timestamp="2007-10-09T23:58:13Z" /> <rc type="0" timestamp="2007-10-09T23:57:49Z" /> </recentchanges> </query> </api>
Why this list does not stop at rcstop? Why there is <query-continue/> with rcstart earlier ("smaller") than rcstop?
(Minor question: why <rc/> has got type property even when I've asked only for a timestamp? I like very much default properties with no rcprop and only what I ask for if rcprop is present. Showing type no matter what looks like a bug.)
przem.
Przemek Piotrowski schreef:
Hi,
I want to see rc from 2007-10-09 23:59:59 back to 23:59:00 on pl.wikipedia:
http://pl.wikipedia.org/w/api.php? action=query&list=recentchanges&rcstart=20071009235959&rcstop=2007100923 5900&rcprop=timestamp
The parameter 'rcstop' is really named 'rcend', so you should use &rcend=2007100235900. The type thing differentiates between a normal edit (type=0), a new page being created (type=1) and a log entry like someone moving or deleting a page type=3). What type=2 means I don't really know, but I've never seen it happen.
Catrope
Roan Kattouw writes:
The type thing differentiates between a normal edit (type=0), a new page being created (type=1) and a log entry like someone moving or deleting a page type=3). What type=2 means I don't really know, but I've never seen it happen.
Catrope
I think we really have to stop use numbers in rctype. There are several constants defined in Defines.php. But they may change, because we must provide unified API. P.S. type=2 is page move (type=4 if it's over redirect). These types are deprecated.
VasilievVV
VasilievVV schreef:
I think we really have to stop use numbers in rctype. There are several constants defined in Defines.php. But they may change, because we must provide unified API.
True, we should use words there. I've filed bug 11632 [1] on the matter.
P.S. type=2 is page move (type=4 if it's over redirect). These types are deprecated.
Are they still used? Aren't moves just another type of log entry now?
Catrope
mediawiki-api@lists.wikimedia.org