TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Aug 2016 |
SPMSupports SPM | ✗ |
Maintained by Bilge Taylan Ulusoy.
To run the example project, clone the repo, and run pod install
from the Example directory first.
let skippy: Skiplagged = Skiplagged()
skippy.getAirportCodesByHint("Lux", result: { (array:[SLAirport]?, error:NSError?) -> Void in
// Do whatever you want with the array
})
skippy.getFlights(SLAirport(code: "HAM", name: nil), to: SLAirport(code: "LUX", name: nil), departureDate: NSDate().dateByAddingTimeInterval(43200), returnDate: NSDate().dateByAddingTimeInterval(43200 * 8), sort: .Pricing, result: { (airlines, trips, depart, cities, error) -> Void in
// If you want to get return flights as well...
skippy.getReturnFlights((trips?.first)!, returnDate: NSDate().dateByAddingTimeInterval(43200 * 8), sort: .Pricing, result: { (airlines, flights, depart, cities, error) -> Void in
})
})
Skiplagged is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Skiplagged"
Bilge Taylan Ulusoy, [email protected]
Skiplagged is available under the MIT license. See the LICENSE file for more info.