API REST /v2/members, filter by title.

Until now I have used the v2 call of members to the API filtering by where_type=0 and query for the name, but I also need to filter by title but I can't do it. What would it be like?

I have this:
var url = baseURL+'/api/v2/members?where_type=0&query="+name+""'; // It´s OK

I need something like this:
var url = baseURL+'/api/v2/members?where_type=0&query="+name+"&where_title="+title+""; //WRONG

Thanks.

Tagged:

Comments

  • I don't see where_title in the parameters list for /api/v2/members, nor do I see another parameter that would allow you to filter by title. The query parameter only allows you to filter on log-in name, lastname, emailAddress or firstname. My guess is you will need to return the full set, then loop through the results to test the title of each one individually.

  • Yes, finally, I've returned the full set.