CocoaPods trunk is moving to be read-only. Read more on the blog, there are 2 months to go.

Skiplagged 0.3.2

Skiplagged 0.3.2

TestsTested ✓
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2016
SPMSupports SPM ✗

Maintained by Bilge Taylan Ulusoy.



Skiplagged

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Get Airports by hint

let skippy: Skiplagged = Skiplagged()

skippy.getAirportCodesByHint("Lux", result: { (array:[SLAirport]?, error:NSError?) -> Void in
    // Do whatever you want with the array
})

Search for flights

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

    })
})

Requirements

Installation

Skiplagged is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Skiplagged"

Author

Bilge Taylan Ulusoy, [email protected]

License

Skiplagged is available under the MIT license. See the LICENSE file for more info.