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 <[email protected]> wrote:

> Won't meta=userinfo&uiprop=blockinfo do it?
>
>
> On 13 April 2014 11:07, Petr Bena <[email protected]> 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
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



-- 
Oliver Keyes
Research Analyst
Wikimedia Foundation
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to