This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
ors-soap-api:public:quicksearch [2015/02/12 10:29] admin [Return parameters] |
ors-soap-api:public:quicksearch [2017/05/19 10:02] admin [Quick Search method] |
||
---|---|---|---|
Line 4: | Line 4: | ||
Query string is a string that user enters in quick search field. You can specify which lists do you want to return by defining ''types'' attribute. | Query string is a string that user enters in quick search field. You can specify which lists do you want to return by defining ''types'' attribute. | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | This method is only available for content type **dhotel** | ||
+ | |||
+ | We urge you to use this CSV export files for regions and cities instead: | ||
+ | |||
+ | * [[http://ors.si/csvs/regions_si.csv]] | ||
+ | * [[http://ors.si/csvs/oids_si.csv]] | ||
+ | |||
+ | </WRAP> | ||
+ | |||
+ | |||
===== Valid content types ===== | ===== Valid content types ===== | ||
Line 130: | Line 142: | ||
$searchParams = array( | $searchParams = array( | ||
'query' => 'zdr', // search string | 'query' => 'zdr', // search string | ||
- | 'types' => 'hotel,places,countries', // type of lists to return | + | 'types' => 'hotel,places,countries,regions', // type of lists to return |
); | ); | ||
Line 147: | Line 159: | ||
'query' => 'zdr', // search string | 'query' => 'zdr', // search string | ||
'types' => 'places', // type of lists to return | 'types' => 'places', // type of lists to return | ||
+ | ); | ||
+ | |||
+ | $results = $soapClient->orsxml_dhotel_api_call( 'quicksearch', $searchParams, $header ); | ||
+ | </code> | ||
+ | |||
+ | * Example of ''quicksearch'' request (return only regions) | ||
+ | |||
+ | <code php> | ||
+ | $searchParams = array( | ||
+ | 'query' => 'kvarner', // search string | ||
+ | 'types' => 'regions', // type of lists to return | ||
); | ); | ||