This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ors-soap-api:public:trips [2015/06/23 14:19] admin [Return parameters] |
ors-soap-api:public:trips [2017/12/13 16:00] admin [Examples] |
||
---|---|---|---|
Line 15: | Line 15: | ||
<code php> | <code php> | ||
- | public array trips( array $searchData, array $headerData, boolean $cleanUrl = true, $topOffersFilter = array()) | + | public array trips( array $searchData, array $headerData, $topOffersFilter = array(), boolean $cleanUrl = true) |
</code> | </code> | ||
Line 254: | Line 254: | ||
* ''lon'' : longitude | * ''lon'' : longitude | ||
* ''trips (array)'' : a list of trips | * ''trips (array)'' : a list of trips | ||
- | * ''sub'' : sub category (catalog, earlybird, lastmin, ...) | + | * ''sub'' : sub category (catalog, earlybird, lastmin, ski-pack). For content type ''trips'' you have this special sub values: |
+ | * **trip** : regular bus trip | ||
+ | * **busplane** : combined trip with bus & plane | ||
+ | * **busplaneship** : combined trip with bus, plane and ship | ||
+ | * **cruise** : cruise | trip with ship | ||
+ | * **plane** : trip with plane | ||
+ | * **train** : transport with train | ||
* ''gid'' : accommodation GIATA ID | * ''gid'' : accommodation GIATA ID | ||
* ''toc'' : touroperator code | * ''toc'' : touroperator code | ||
Line 280: | Line 286: | ||
* ''ppc'' : price per person | * ''ppc'' : price per person | ||
* ''cppc'' : catalog price (if cppc is grater then zero, then this is information about catalog price -- without discounts) | * ''cppc'' : catalog price (if cppc is grater then zero, then this is information about catalog price -- without discounts) | ||
- | * ''ahc'' : arrival airport (IATA code) | + | * ''ahc'' : departure airport (IATA code) |
+ | * ''zhc'' : arrival airport (IATA code) | ||
* ''sid'' : entry point ID (only for ''trips'' content type) | * ''sid'' : entry point ID (only for ''trips'' content type) | ||
* ''sin'' : entry point name (only for ''trips'' content type) | * ''sin'' : entry point name (only for ''trips'' content type) | ||
Line 395: | Line 402: | ||
$trips = $soapClient->orsxml_hotel_api_call( 'trips', $searchParams, $header ); | $trips = $soapClient->orsxml_hotel_api_call( 'trips', $searchParams, $header ); | ||
+ | </code> | ||
+ | |||
+ | ===== JSON Examples ===== | ||
+ | |||
+ | @see [[ors-soap-api:public:json_api]] how to post request. | ||
+ | |||
+ | <code php> | ||
+ | { | ||
+ | "requestType" : "search", | ||
+ | "action": "trips", | ||
+ | "search": { | ||
+ | "typ": "hotel", | ||
+ | "vnd": "2018-01-10", | ||
+ | "bsd": "2018-03-10", | ||
+ | "tdc": "1-5", | ||
+ | "gid": "15257", | ||
+ | "epc": "2" | ||
+ | }, | ||
+ | "top" : { | ||
+ | "toc" : "FTI" | ||
+ | }, | ||
+ | "header": { | ||
+ | "lang": "[lang]", | ||
+ | "usr" : "[usr]", | ||
+ | "pass": "[pass]", | ||
+ | "agid": "[agid]" | ||
+ | } | ||
+ | } | ||
</code> | </code> |