home > support > API > Marketplace API > API: get tour list
Return the tour list from the subsystem.
For Tour Operator usage only (not accessible by Marketplace Agents).
Call | /api/tours/importer/get_tour_list |
Formats | XML |
Example | /api/tours/importer/get_tour_list.xml |
Verb | GET |
PHP examples use the PHP Client Library with SimpleXML
object get_list_tours ( int $channel )
// Channel (Operator) ID of the Tour
$channel = 6;
// Query the TourCMS API
$result = $tourcms->get_list_tours($channel);
// Go straight to the tour node
$tour = $result->list_tours;
// Print out the tour name and lead in price
print 'Previous Page Key - '.$tour->previous_page_key;
Previous Page Key - ABC123
Enter your TourCMS API credentials below to call the Get Tour List endpoint.
The tour facets input querystring data should be passed as querystring parameters (eg: input1=A&input2=B)
Node | Notes | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request | Confirmation of the request that you sent | ||||||||||||||||||||||||
error | Any error message returned, if there is no error this will just contain the text OK | list_tours |
The list_tours node contains the following child nodes.
|