Table of contents
-
- Search methods
- Check methods
- Booking methods
- Info methods
Data export
- Methods
Table of contents
Data export
This is an old revision of the document!
Get a list of touroperator objects.
hotel
(at the moment only this content type is supported)searchData (array)
: search parameters. Required serach parameters: toc
. Non mandatory parameters: objectId
headerData (array)
: in addition to SOAP Header Information , you'll need an export account credentials (xuser
, xpass
)Returns a list of available objects. Here is an example of output (string is always returned):
4081:17281:2SI408126481:26481:OV:2015-08-01:2015-07-08
$searchParams = array( 'toc' => 'APP', // touroperator code 'unitId' => '17281', // unit id 'rateId' => '26481', // rate id (get this from getUnitPricesByParams method) 'dateFrom' => '2015-08-01', // check-in date 'dateTo' => '2015-07-08', // check-out date ); $hash = $soapClient->orsxml_hotel_api_call( 'getPriceCheckHash', $searchParams, $header );
$searchParams = array( 'toc' => 'APP', // touroperator code 'unitId' => '17281', // unit id 'rateId' => '26481', // rate id (get this from getUnitPricesByParams method) 'dateFrom' => '2015-08-01', // check-in date 'dateTo' => '2015-07-08', // check-out date 'serviceType' => 'OV' , // service type code ); $hash = $soapClient->orsxml_hotel_api_call( 'getPriceCheckHash', $searchParams, $header );