UDDS OX API - documentation ver.2.5 (2023-04-07) ( www.dlaoperatora.pl )

Function getTripsList

Arguments

Returns

Array including details for all found trips.

Example


  require_once ( 'classUddsOx.php' ) ;

  $udds = new classUddsOx ;
  $udds->customerCode = [your_customerCode] ;
  $udds->login = [your_login] ;
  $udds->password = [your_password] ;
  $udds->serverUrl = 'http://api.dlaoperatora.pl/udds/' ;

  $udds->searchParams [ 'offerGroup' ] = array ( 'Krajowe' ) ;
  $udds->searchParams [ 'country' ] = 'Polska';
  $udds->searchParams [ 'departureDateFrom' ] = '2018-01-01' ;
  
  $ret = $udds->getTripsList() ;
  

Returns $ret =
Array ( [totalCount] => 160 [items] => Array ( [0] => Array ( [details] => Array ( [type] => db [tripId] => 853 [offerId] => 4 [tripName] => [dateFrom] => 2018-08-17 [dateTo] => 2018-08-26 [lengthDays] => 10 [lengthNights] => 9 [roomCode] => SGL [roomDescription] => Single [feeding] => bez wyżywienia [busStopId] => 10 [maxSeatsAvail] => 0 [extPricesOn] => 0 [busStopDetails] => Array ( [busStopId] => 10 [code] => PKP SZZ [country] => Polska [city] => Szczecin [address] => Szczecin Główny [description] => [type] => przystanek ) ) [room] => Array ( [code] => SGL [description] => Single [minPax] => 1 [maxPax] => 1 [minAdt] => 1 [maxAdt] => 1 [maxInf] => 5 ) [priceList] => Array ( [pricePersonPLNValue] => 67300 [pricePersonValue] => 1200 [pricePersonCurrency] => EUR [basePriceValue] => 0 [basePriceCurrency] => PLN ) [priceExtList] => Array ( [maxAgeChd] => 0 [maxAgeInf] => 0 [priceAdt1] => 0 [priceAdt2] => 0 [priceAdt3] => 0 [priceAdt4] => 0 [priceAdtX] => 0 [priceChd1] => 0 [priceChd2] => 0 [priceChdX] => 0 [priceInf1] => 0 [priceInfX] => 0 [priceCurrency] => ) [priceTotalSummary] => -3 [sortBy_date] => 2018-08-17 [sortBy_firstAdt] => [sortBy_priceTot] => ) [1] => Array ( [details] => Array ( [type] => db [tripId] => 842 [offerId] => 4 [tripName] => [dateFrom] => 2018-08-17 [dateTo] => 2018-08-26 [lengthDays] => 10 [lengthNights] => 9 [roomCode] => SGL [roomDescription] => Single [feeding] => 2x dziennie [busStopId] => 2 [maxSeatsAvail] => 0 [extPricesOn] => 0 [busStopDetails] => Array ( [busStopId] => 2 [code] => KTW [country] => Polska [city] => Katowice [address] => Dworcowa 17 [description] => [type] => przystanek ) ) [room] => Array ( [code] => SGL [description] => Single [minPax] => 1 [maxPax] => 1 [minAdt] => 1 [maxAdt] => 1 [maxInf] => 5 ) [priceList] => Array ( [pricePersonPLNValue] => 77800 [pricePersonValue] => 1200 [pricePersonCurrency] => EUR [basePriceValue] => 0 [basePriceCurrency] => PLN ) [priceExtList] => Array ( [maxAgeChd] => 0 [maxAgeInf] => 0 [priceAdt1] => 0 [priceAdt2] => 0 [priceAdt3] => 0 [priceAdt4] => 0 [priceAdtX] => 0 [priceChd1] => 0 [priceChd2] => 0 [priceChdX] => 0 [priceInf1] => 0 [priceInfX] => 0 [priceCurrency] => ) [priceTotalSummary] => -3 [sortBy_date] => 2018-08-17 [sortBy_firstAdt] => [sortBy_priceTot] => ) [2] => Array ( [details] => Array ( [type] => db [tripId] => 878 [offerId] => 4 [tripName] => [dateFrom] => 2018-12-01 [dateTo] => 2018-12-10 [lengthDays] => 10 [lengthNights] => 9 [roomCode] => SGL [roomDescription] => Single [feeding] => 2x dziennie [busStopId] => 2 [maxSeatsAvail] => 0 [extPricesOn] => 0 [busStopDetails] => Array ( [busStopId] => 2 [code] => KTW [country] => Polska [city] => Katowice [address] => Dworcowa 17 [description] => [type] => przystanek ) ) [room] => Array ( [code] => SGL [description] => Single [minPax] => 1 [maxPax] => 1 [minAdt] => 1 [maxAdt] => 1 [maxInf] => 5 ) [priceList] => Array ( [pricePersonPLNValue] => 78000 [pricePersonValue] => 1200 [pricePersonCurrency] => EUR [basePriceValue] => 0 [basePriceCurrency] => PLN ) [priceExtList] => Array ( [maxAgeChd] => 0 [maxAgeInf] => 0 [priceAdt1] => 0 [priceAdt2] => 0 [priceAdt3] => 0 [priceAdt4] => 0 [priceAdtX] => 0 [priceChd1] => 0 [priceChd2] => 0 [priceChdX] => 0 [priceInf1] => 0 [priceInfX] => 0 [priceCurrency] => ) [priceTotalSummary] => -3 [sortBy_date] => 2018-12-01 [sortBy_firstAdt] => [sortBy_priceTot] => ) [3] => Array ( [details] => Array ( [type] => db [tripId] => 806 [offerId] => 4 [tripName] => [dateFrom] => 2018-04-12 [dateTo] => 2018-04-21 [lengthDays] => 10 [lengthNights] => 9 [roomCode] => SGL [roomDescription] => Single [feeding] => 2x dziennie [busStopId] => 2 [maxSeatsAvail] => 0 [extPricesOn] => 0 [busStopDetails] => Array ( [busStopId] => 2 [code] => KTW [country] => Polska [city] => Katowice [address] => Dworcowa 17 [description] => [type] => przystanek ) ) [room] => Array ( [code] => SGL [description] => Single [minPax] => 1 [maxPax] => 1 [minAdt] => 1 [maxAdt] => 1 [maxInf] => 5 ) [priceList] => Array ( [pricePersonPLNValue] => 79500 [pricePersonValue] => 1200 [pricePersonCurrency] => EUR [basePriceValue] => 0 [basePriceCurrency] => PLN ) [priceExtList] => Array ( [maxAgeChd] => 0 [maxAgeInf] => 0 [priceAdt1] => 0 [priceAdt2] => 0 [priceAdt3] => 0 [priceAdt4] => 0 [priceAdtX] => 0 [priceChd1] => 0 [priceChd2] => 0 [priceChdX] => 0 [priceInf1] => 0 [priceInfX] => 0 [priceCurrency] => ) [priceTotalSummary] => -3 [sortBy_date] => 2018-04-12 [sortBy_firstAdt] => [sortBy_priceTot] => ) [4] => Array ( [details] => Array ( [type] => db [tripId] => 807 [offerId] => 4 [tripName] => [dateFrom] => 2018-04-12 [dateTo] => 2018-04-21 [lengthDays] => 10 [lengthNights] => 9 [roomCode] => SGL [roomDescription] => Single [feeding] => 2x dziennie [busStopId] => 3 [maxSeatsAvail] => 0 [extPricesOn] => 0 [busStopDetails] => Array ( [busStopId] => 3 [code] => BYD [country] => Polska [city] => Bydgoszcz [address] => Jesionowa 9 [description] => [type] => przystanek ) ) [room] => Array ( [code] => SGL [description] => Single [minPax] => 1 [maxPax] => 1 [minAdt] => 1 [maxAdt] => 1 [maxInf] => 5 ) [priceList] => Array ( [pricePersonPLNValue] => 74500 [pricePersonValue] => 1200 [pricePersonCurrency] => EUR [basePriceValue] => 0 [basePriceCurrency] => PLN ) [priceExtList] => Array ( [maxAgeChd] => 0 [maxAgeInf] => 0 [priceAdt1] => 0 [priceAdt2] => 0 [priceAdt3] => 0 [priceAdt4] => 0 [priceAdtX] => 0 [priceChd1] => 0 [priceChd2] => 0 [priceChdX] => 0 [priceInf1] => 0 [priceInfX] => 0 [priceCurrency] => ) [priceTotalSummary] => -3 [sortBy_date] => 2018-04-12 [sortBy_firstAdt] => [sortBy_priceTot] => ) [5] => Array ( [details] => Array ( [type] => db [tripId] => 809 . . . . . ( ... )