CocoaPods trunk is moving to be read-only. Read more on the blog, there are 15 months to go.

APIHTTPClient 1.0.2

APIHTTPClient 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2015

Maintained by Anthony Foster.



  • By
  • Anthony Foster

objc-api-client

Installation

pod install APIHTTPClient

Usage

#import "AppDelegate.h"
#import <APIClient/APIClient.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    APIClient *client = [[APIClient alloc] init];
    client.baseURL = [NSURL URLWithString:@"https://api.github.com"];
    // client.accessToken = @"test";
    [client GET:@"/" done:^(NSError *error, id response) {
        NSLog(@"Response: %@ %@", error, response);
    }];
    return YES;
}

@end