User Tools

Site Tools


ors-soap-api:public:regions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ors-soap-api:public:regions [2015/01/24 16:40]
127.0.0.1 external edit
ors-soap-api:public:regions [2019/07/15 09:59] (current)
admin [Examples]
Line 46: Line 46:
     [top_regions] => Array     [top_regions] => Array
         (         (
 +        )
 +
 +    [rfilters] => Array
 +        (
 +          [ppc] => "​26-27"​
         )         )
  
Line 85: Line 90:
  
   * ''​top_regions (array)''​ : a list of top regions (this list depends on a filter ''​$topOffersFilter'',​ if this filter is not set then this array is empty.   * ''​top_regions (array)''​ : a list of top regions (this list depends on a filter ''​$topOffersFilter'',​ if this filter is not set then this array is empty.
 +  * ''​rfilters (array)''​ : range filters
 +    * ''​ppc''​ : filters by price per person
   * ''​regions (array)''​ : a list of region groups   * ''​regions (array)''​ : a list of region groups
     * ''​region''​ : region group name     * ''​region''​ : region group name
Line 113: Line 120:
 </​code>​ </​code>​
  
-  * Example with top offers filtes+  * Example with top offers filtes ​and range filters
  
 <code php> <code php>
Line 121: Line 128:
   '​tdc'​ => '​1-4', ​             // duration [min-max] days   '​tdc'​ => '​1-4', ​             // duration [min-max] days
   '​epc'​ => '​2', ​               // number of adults   '​epc'​ => '​2', ​               // number of adults
 +  '​rfilter'​ => array(
 +     '​ppc'​ => '​200-400' ​       // filter by price range
 +  )
 ); );
  
Line 129: Line 139:
 ); );
 $regions = $soapClient->​orsxml_hotel_api_call( '​regions',​ $searchParams,​ $header, $topRegions ); $regions = $soapClient->​orsxml_hotel_api_call( '​regions',​ $searchParams,​ $header, $topRegions );
 +</​code>​
 +
 +===== JSON Examples =====
 +
 +@see [[ors-soap-api:​public:​json_api]] how to post request.
 +
 +<code php>
 +{
 +  "​requestType"​ : "​search",​
 +  "​action":​ "​regions",​
 +  "​search":​ {
 +    "​typ":​ "​hotel",​
 +    "​vnd":​ "​2018-01-10",​
 +    "​bsd":​ "​2018-03-10",​
 +    "​tdc":​ "​1-5",​
 +    "​epc":​ "​2"​
 +  },
 +  "​top" ​ : {
 +    "​toc"​ : "​FTI",​
 +    "​stc"​ : "​3" ​
 +  },
 +  "​header":​ {
 +    "​lang":​ "​[lang]",​
 +    "​usr"​ : "​[usr]",​
 +    "​pass":​ "​[pass]",​
 +    "​agid":​ "​[agid]"​
 +  }
 +}
 </​code>​ </​code>​
ors-soap-api/public/regions.1422114000.txt.gz ยท Last modified: 2017/12/13 15:57 (external edit)