What Alex said. Alternately you can also use list=users&usprop=blockinfo. In both cases, it's a simple yes/no in the sense that the presence of a returned 'blockinfo' element indicates the user is blocked.
On 13 April 2014 08:44, Alex Monk krenair@gmail.com wrote:
Won't meta=userinfo&uiprop=blockinfo do it?
On 13 April 2014 11:07, Petr Bena benapetr@gmail.com wrote:
I was trying to detect it using api, but I figured out that list=user which can do that, doesn't work on IP's.
what could work is list=blocks but that doesn't return if block is active or not, it just list all of them.
I need to get a simple "yes/no" result, is there any way to do that?
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l