Hey Andre,

You might need to urlencode the values. I have the suspicion that the slashes are causing the problem. I'd not, could you provide the error you get?

Sent from my mobile device.

On May 2, 2017 23:38, "André Fincato" <andre@andrefincato.info> wrote:
Hello,
I’m currently converting `action=ask&query=[[Category:Event]][[OnDate::<2017/05/03]] + etc` to use `action=askargs`.

So far I stripped away the double square brackets around Category:Event, and it gives back results.

`action=ask&conditions=Category:Event&printouts=NameOfEvent`

If I try to filter Category:Event by today’s date as above though, I get an error back, in all the following combination:

* `action=ask&conditions=Category:Event[[OnDate::<2017/05/03]]&printouts=NameOfEvent`

* `action=ask&conditions=Category:EventOnDate::<2017/05/03&printouts=NameOfEvent`

* `action=ask&conditions=Category:Event|OnDate::<2017/05/03&printouts=NameOfEvent`

* `action=ask&conditions=Category:Event&OnDate::<2017/05/03&printouts=NameOfEvent`

Is it possible to use any similar syntax and filter upfront pages based on properties?

The only reason why I am try to switch to askargs, is that, unlike ask, it has a query-continue-offset.


Thanks,
André
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api