To run the example project, clone the repo, and run pod install
from the Example directory first.
TheKeyOAuthSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TheKeyOAuthSwift'
TheKeyOAuthClient.shared.performActionWithTicket(forService: "https://service.example.com/") { (result) in
switch result {
case let .success(ticket):
// do something with the ticket
case .failure(TheKeyOAuthClient.ApiError.notConfigured)
// You should really configure the library before trying to use it
case let .failure(error):
// handle the error as appropriate
}
}
[email protected], [email protected]
TheKeyOAuthSwift is available under the MIT license. See the LICENSE file for more info.