aantthony / objc-api-client

Easy to use HTTP client with support for REST APIs, JSON serialization and deserialization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

objc-api-client

Pod Version Build Status License

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

About

Easy to use HTTP client with support for REST APIs, JSON serialization and deserialization.

License:MIT License


Languages

Language:Objective-C 90.7%Language:Ruby 9.3%