Support Knowledge Base >> Reseller Guides >> Reseller API Guide

Search |

IMPORTANT: Modification of Result of Search calls made using the API

Default Search Parameter

All search queries of the query type "=text" will search for the exact string. Thus, if you pass the Search query as shown below -

listOrder(<#=USERNAME#>,<#=PASSWORD#>,<#=ROLE#>,<#=LANGPREF#>,<#=PARENTID#>,null,null,null,true,
array("domcno","domorg","dombiz"),array("Active","InActive"),"xyz.com",null,null,null,null,"10","1",array("orders.orderid"));

Then it will Search for the exact String xyz.com. However, to make your search broad you can pass Search query in below way.

Other Search Parameters

1. To perform a search on any field beginning with a particular string, use "text%"

2. To perform a search on any field ending with a particular string, use "%text"

3. To perform a search on any field similar to a particular string, use "%text%"

So if you want like search for xyz in .com, .net, .org and .biz, you will have to pass parameter in above list method in below way

listOrder(<#=USERNAME#>,<#=PASSWORD#>,<#=ROLE#>,<#=LANGPREF#>,<#=PARENTID#>,null,null,null,true,
array("domcno","domorg","dombiz"),array("Active","InActive"),"%xyz%",null,null,null,null,"10","1",array("orders.orderid"));

This is applied to

listContact method in DomContact class for parameters -> contactName, companyname and emailAddr

 

Created on:  
Jun 23, 2004 8:01 AM  GMT
Last Updated on:   Dec 12, 2006 1:55 PM  GMT
 
Answer Read This FIRST - General API Integration Instructions 
Category Sample API Flow 
Category Java API Kit 
Category PHP API Kit 
Category .NET API Kit 
Category Perl API Kit 
Answer IMPORTANT: API Abuse 
Answer IMPORTANT: Modification of Result of Search calls made using the API 
Answer Server Error Format Description 
Answer Data Validation of Parameters passed in an API Method Call 
Answer Common API Examples and Errors 
Category Emulate and Debug your API Calls 
Answer Procedure To Retrieve XML Sent And Received