TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2016 |
SPMSupports SPM | ✗ |
Maintained by Kerr Marin Miller.
To run the example project, clone the repo, and run pod install
from the Example directory first.
To login to a Ghost blog use the GhostLoginClient
, then create an instance of a class that conforms to GhostLoginTokenParser
(e.g. GhostLoginTokenJSONParser
) and an instance of a class that conforms to GhostLoginSessionManager
(e.g. GhostLoginJSONSessionManager
). Use these objects to create a login client:
self.client = GhostLoginClient(manager: manager, parser: parser)
self.client!.loginWithUsername(email, password: password) { (token, error) -> Void in
guard error == nil else {
//Error
return
}
//Token is valid here
}
This project requires the latest iOS, iOS 9.0. It also has a dependency on Alamofire version 3.
GhostLoginClient is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GhostLoginManager"
Alternatively, although I discourage this approach, clone the project and copy all the files under the Pod
folder into your project.
Kerr Marin Miller, [email protected]
GhostLoginManager is available under the MIT license. See the LICENSE file for more info.