I am trying to make a user search but I always get an Internal error. I am doing it with the follow parameters:
'{"page":2,"page_size":250,"fields":"*","filters":{"query":"login:marydice"}}'
My code looks like:
API api = new API(APP_ID,TOKEN);
UserApp.ClientOptions options = api.getOptions();
options.debug = true;
options.throwErrors = true;
api.setOptions(options);
result = api.method("user.search").parameter("page", 2)
.parameter("page_size", 250)
.parameter("fields","*").parameter("filters",
new UserApp.Struct().parameter("query", "login:marydice")).call();
What am I missing? and BTW, if a performed a search without any parameters it works jsut fine. On the other hand, if a get two pages as result, how can a get the items in the second page????