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
Next 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 [2017/12/13 15:59]
admin [Examples]
Line 218: Line 218:
             [stc] => 0             [stc] => 0
             [ovr] => 0             [ovr] => 0
 +            [gid] => 0
 +            [emf] => 0
             [ppc] => asc             [ppc] => asc
         )         )
Line 353: Line 355:
     * ''​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 542: Line 549:
 </​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