This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ors-soap-api:public:offers_method [2015/01/24 16:40] 127.0.0.1 external edit |
ors-soap-api:public:offers_method [2019/07/15 09:58] (current) admin [Examples] |
||
---|---|---|---|
Line 73: | Line 73: | ||
[oid] => 23887 | [oid] => 23887 | ||
[stc] => 4.0 | [stc] => 4.0 | ||
- | [ovr] => 0 | + | [ovr] => 100 |
+ | [emf] => 80 | ||
+ | [cnt] => 3 | ||
+ | [pax] => št. oseb | ||
+ | [rooms] => 1 | ||
+ | [bedrooms] => 1 | ||
[ppc] => 27.00 | [ppc] => 27.00 | ||
[tdc] => 1 | [tdc] => 1 | ||
Line 193: | Line 198: | ||
) | ) | ||
- | + | ) | |
- | [ppc] => Array | + | |
- | ( | + | [rfilters] => Array |
- | [selected] => 0 | + | ( |
- | [val] => Array | + | [ppc] => "56-112" |
- | ( | + | |
- | [00] => 00 | + | |
- | [112] => 112 | + | |
- | ) | + | |
- | + | ||
- | ) | + | |
) | ) | ||
Line 213: | Line 211: | ||
[stc] => 0 | [stc] => 0 | ||
[ovr] => 0 | [ovr] => 0 | ||
+ | [gid] => 0 | ||
+ | [emf] => 0 | ||
[ppc] => asc | [ppc] => asc | ||
) | ) | ||
Line 348: | 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 375: | 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 475: | Line 481: | ||
'zac' => 'DZ' // filter by room type (display only double rooms) | 'zac' => 'DZ' // filter by room type (display only double rooms) | ||
) | ) | ||
+ | 'rfilter' => array( | ||
+ | 'ppc' => '50-100' // filter by price | ||
+ | ) | ||
+ | |||
); | ); | ||
Line 537: | Line 547: | ||
</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) ===== | ||