Latest 0.5.0
Homepage https://github.com/kerrmarin/GhostLoginManager
License MIT
Platforms ios 8.0, requires ARC
Dependencies Alamofire
Authors

[![CI Status](http://img.shields.io/travis/Kerr Marin Miller/GhostLoginManager.svg?style=flat)](https://travis-ci.org/Kerr Marin Miller/GhostLoginManager)
Version
License
Platform

Usage

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
}

Requirements

This project requires the latest iOS, iOS 9.0. It also has a dependency on Alamofire version 3.

Installation

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.

Author

Kerr Marin Miller, [email protected]

License

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

Latest podspec

{
    "name": "GhostLoginManager",
    "version": "0.5.0",
    "summary": "A client library to log into an installation of Ghost",
    "description": "GhostLoginManager is an Swift client for the Ghost authentication API.",
    "homepage": "https://github.com/kerrmarin/GhostLoginManager",
    "license": "MIT",
    "authors": {
        "Kerr Marin Miller": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kerrmarin/GhostLoginManager.git",
        "tag": "0.5.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "GhostLoginManager": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "Alamofire": [
            "~> 3.0"
        ]
    }
}

Pin It on Pinterest

Share This