Latest 0.2
Homepage https://github.com/kerrmarin/KMMGhostLoginClient
License MIT
Platforms ios 8.4, requires ARC
Dependencies AFNetworking
Authors

CI Status
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 KMMGhostLoginClient, then create an instance of a class that conforms to KMMGhostLoginTokenParser (e.g. KMMGhostLoginTokenJSONParser) and an instance of a class that conforms to KMMGhostLoginSessionManager (e.g. KMMGhostLoginJSONSessionManager). Use these objects to create a login client:


KMMGhostLoginClient *client = [[KMMGhostLoginClient alloc] initWithManager:manager parser:parser];
[client loginWithUsername:@"username"
                 password:@"password"
                 complete:^(KMMGhostLoginToken *__nullable token, NSError *__nullable error) {
    if(error) {
        NSLog(@"An error occurred");
    } else {
        //Use token here to get your auth token
        NSString *accessToken = token.accessToken;
    }
}];

Requirements

This project requires the latest iOS, iOS 8.4. It also has a dependency on AFNetworking version 2.6.

Installation

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

pod "KMMGhostLoginClient"

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, @kerrmarin, www.kerrmarin.com

License

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

Latest podspec

{
    "name": "KMMGhostLoginClient",
    "version": "0.2",
    "summary": "A client library to log into an installation of Ghost",
    "description": "KMMGhostLoginClient is an Objective-C client for the Ghost authentication API.",
    "homepage": "https://github.com/kerrmarin/KMMGhostLoginClient",
    "license": "MIT",
    "authors": {
        "Kerr Marin Miller": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kerrmarin/KMMGhostLoginClient.git",
        "tag": "0.2"
    },
    "social_media_url": "https://twitter.com/kerrmarin",
    "platforms": {
        "ios": "8.4"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "GhostLoginClient": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "AFNetworking": [
            "~> 2.6.0"
        ]
    }
}

Pin It on Pinterest

Share This