Hi,
I chatted with Roan on freenode briefly, where he said he thought I was making a valid request in the right way.. So that gave me some hope to play around further.
What I've found is that if I request rcprop for user and userid, then things seem to work. But if I only request userid, then no worky:
Working correctly: https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=rece...
Not working: https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=rece...
Only difference is not requesting "user" in rcprop.
Weird..
Since I don't really care if I get (or don't get) user handles, I'm happy to put that in my request for now. So I can continue developing the application. But it does seem like a bug. I took the liberty of filing a bug - https://bugzilla.wikimedia.org/show_bug.cgi?id=62301
If that's not appropriate just let me know and I'll close it.
Thanks and all input welcome! Steve
On Wed, Mar 5, 2014 at 6:02 PM, Steve Midgley science@misuse.org wrote:
Hi,
I'm new to the api and this list, but I really appreciate that it's there.
I'm trying to create what I thought would be a simple query: "List all recent changes of all pages, but don't show anon, minor or bot changes"
In particular, I want the pageid, page title and userid associated with each change. Nice to have pre/post page size too. I've got the query working in my codebase, and on the wikimedia api sandbox: https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&list=rece...
But even with what I think is the correct "rcshow" values, I still get anon edits - both in the sandbox and on the live sitehttps://en.wikipedia.org/w/api.php?action=query&list=recentchanges&format=json&rcstart=2014-03-04T00%3A00%3A00Z&rcdir=newer&rcnamespace=0&rcprop=userid%7Ctitle%7Cids%7Csizes&rcshow=!minor%7C!bot%7C!anon&rclimit=50 .
In fact in some ways it seems like I'm *only* seeing anon posts. Any thoughts as to what's going on? Am I misunderstanding how the API works?
Thanks for any input! Steve