Latest 0.2.3
Homepage https://github.com/Keithbsmiley/KSGithubStatusAPI
License MIT
Platforms ios 7.0, osx 10.9, requires ARC
Dependencies Reachability
Authors

This API Controller use Github’s system status API and returns the current status

Usage

KSGithubStatusAPI *statusAPI = [[KSGithubStatusAPI alloc] init];
[statusAPI checkStatus:^(KSGithubStatus *status) {
    if (status.isAvailable) {
        NSLog(@"Github is available");
    } else {
        NSLog(@"Github isn't available");
    }

    NSLog(@"Status: %@", status.status);
    NSLog(@"Details: %@", status.details);

    NSLog(@"Last Checked: %@", status.readableCreatedAtDate);
    NSLog(@"Last Checked: %@", statusAPI.readableLastCheckedDate);

    NSLog(@"Github updated date: %@", status.readableGithubUpdatedDate);
}];

Installation

  1. Use CocoaPods, in your Podfile

    pod 'KSGithubStatusAPI', '~> 0.2.0'
  2. Add Reachability to your project. Add all .h and .m files to your project.

Latest podspec

{
    "name": "KSGithubStatusAPI",
    "version": "0.2.3",
    "summary": "A simple Objective-C API controller for status.github.com.",
    "homepage": "https://github.com/Keithbsmiley/KSGithubStatusAPI",
    "license": "MIT",
    "authors": {
        "Keith Smiley": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Keithbsmiley/KSGithubStatusAPI.git",
        "tag": "0.2.3"
    },
    "platforms": {
        "ios": "7.0",
        "osx": "10.9"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "Reachability": [
            "~> 3.1.0"
        ]
    }
}

Pin It on Pinterest

Share This