Example of getHostsDump function
getHostsDump(hostid, from_date, to_date, include_availability, include_pricing, include_webdetails, include_tourdetails)
getHostsDump
string getHostsDump(array hostids, date from_date, date to_date, boolean include_availability, boolean include_pricing, boolean include_webdetails, boolean include_tourdetails))
getHostsDump function combines many of the RON Api functions into a single function and returns a large xml string. This enables the distributor to make a single call for a day with boolean options to control components of the dataset that should be returned.
Example
The following example will return availability and pricing for all web-enabled tours for Tour operator RT between 1-March-2009 and 31-March-2009.
$results = xu_rpc_http_concise(array(
"method" => "getHostsDump ",
"args" => array(array("RT"), "1-mar-2009", "31-mar-2009", true, true, false, false),
"uri" => $uri."&PHPSESSID=1bea4b6a9491805f986ad14389a1a25e",
"port" => $port
));
Results
