User Tools

Site Tools


ors-soap-api:public:offers_method

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ors-soap-api:public:offers_method [2015/02/12 16:10]
admin [Return Values]
ors-soap-api:public:offers_method [2019/07/15 09:57]
admin [Return parameters]
Line 198: Line 198:
  
                 )                 )
- +        ) 
-            [ppc] => Array +         
-                ( +    [rfilters] => Array 
-                    ​[selected] => 0 +        
-                    [val] => Array +          [ppc] => "56-112"
-                        +
-                            [00] => 00 +
-                            [112] => 112 +
-                        ) +
- +
-                ) +
         )         )
  
Line 218: Line 211:
             [stc] => 0             [stc] => 0
             [ovr] => 0             [ovr] => 0
 +            [gid] => 0
 +            [emf] => 0
             [ppc] => asc             [ppc] => asc
         )         )
Line 353: Line 348:
     * ''​stc''​ : hotel category     * ''​stc''​ : hotel category
     * ''​ovr''​ : overall rating     * ''​ovr''​ : overall rating
 +    * ''​emf''​ : users recommendation (in percents)
 +    * ''​cnt''​ : number of reviewers
 +    * ''​pax''​ : number of persons
 +    * ''​rooms''​ : number of rooms
 +    * ''​bedrooms''​ : number of bedrooms
     * ''​hon''​ : city name     * ''​hon''​ : city name
     * ''​oid''​ : city ID     * ''​oid''​ : city ID
Line 380: Line 380:
     * ''​ovr''​ : filters by overall rating     * ''​ovr''​ : filters by overall rating
     * ''​oid''​ : filters by city ID     * ''​oid''​ : filters by city ID
 +  * ''​rfilters (array)''​ : range filters
     * ''​ppc''​ : filters by price per person     * ''​ppc''​ : filters by price per person
   * ''​sorts (array)''​ : possible sorting   * ''​sorts (array)''​ : possible sorting
Line 542: Line 543:
 </​code>​ </​code>​
  
 +===== JSON Examples =====
 +
 +@see [[ors-soap-api:​public:​json_api]] how to post request.
 +
 +<code php>
 +{
 +  "​requestType"​ : "​search",​
 +  "​action":​ "​offers",​
 +  "​search":​ {
 +    "​typ":​ "​hotel",​
 +    "​vnd":​ "​2018-01-10",​
 +    "​bsd":​ "​2018-03-10",​
 +    "​tdc":​ "​1-5",​
 +    "​rgcs":​ "​100023",​
 +    "​epc":​ "​2"​
 +  },
 +  "​top" ​ : {
 +    "​toc"​ : "​FTI",​
 +    "​stc"​ : "​3" ​
 +  },
 +  "​header":​ {
 +    "​lang":​ "​[lang]",​
 +    "​usr"​ : "​[usr]",​
 +    "​pass":​ "​[pass]",​
 +    "​agid":​ "​[agid]"​
 +  }
 +}
 +</​code>​
 ===== Examples (Extras) ===== ===== Examples (Extras) =====
  
ors-soap-api/public/offers_method.txt · Last modified: 2019/07/15 09:58 by admin