// Setup your conference id(required)
OctavKit.setup(conferenceId: "YOUR_CONFERENCE_ID")
// Set locale(option)
OctavKit.setLocale(Locale.current)
// Sessions receives an instance of a type that conforms to Request.
OctavKit.sessions { (value, error) in
switch (value, error) {
case (let value?, _):
print("success: \(value)")
case (_, let error?):
print("error: \(error)")
case (.none, .none):
fatalError("unreachable")
}
}
// Sponsors receives an instance of a type that conforms to Request.
OctavKit.sponsors { (value, error) in ...
// Conference receives an instance of a type that conforms to Request.
OctavKit.conference { (value, error) in ...
OctavKit
Swift toolkit for the Octav API.
Requirements
Installation
Carthage
github "to4iki/OctavKit"
to your Cartfile.carthage bootstrap --platform iOS
.Usage