Skip to content

keith/KSGithubStatusAPI

Repository files navigation

KSGithubStatusAPI

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.

About

A simple Objective-C API controller for status.github.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published