Seching Using API for contact module

API to search based on multiple custom fields in suitecrm for contact module.

I have added these three field in contacts module.

  1. Business - can have value Agriculture, Medical,social , etc.
  2. Interests - can have values Reading,driving,cooking, decorating etc.
  3. Call Time - can have value morning, afternoon, night etc.

Now I want to search those contacts that can have business=agriculture and calltime=afternoon using api

How we can we achecive this?

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Web_Services/Examples/REST/PHP/Retrieving_a_List_of_Records/

there you have the

//The SQL WHERE clause without the word "where".
         'query' => "",

in that line, you have to specify the filter of the selected query

best regards