APIHTTPClient 1.0.2

APIHTTPClient 1.0.2

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布上次发布2015年6月

Anthony Foster维护。



  • Anthony Foster

objc-api-client

安装

pod install APIHTTPClient

使用

#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