Latest 1.0.1
Homepage https://github.com/adtrade/ATNetworking
License MIT
Platforms ios 6.0, requires ARC
Authors

Usage

#import "ATNetworking.h"

Query an API.


    [[ATNetworking sharedInstance] requestURL:@"https://www.googleapis.com/books/v1/volumes?q=harry+potter" completionHandler:^(NSDictionary *item, NSArray *items, NSError *error, NSDictionary *errorDictionary, NSURLResponse *response, NSDictionary *data) {

        if(!error){
            // Populates 'items' on API responses that contain list of objects.
            // Populates 'item' on API responses that contain a single object.

        }else{
            NSLog(@"An error occurr: %@", error.userInfo[NSLocalizedDescriptionKey]);

        }

    }];

Testing

Open Project/ATNetworking.xcworkspace in Xcode and type Command-U

Latest podspec

{
    "name": "ATNetworking",
    "version": "1.0.1",
    "summary": "Lightweight networking library for consuming RESTful JSON APIs.",
    "homepage": "https://github.com/adtrade/ATNetworking",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "williamlocke": "[email protected]"
    },
    "source": {
        "git": "https://github.com/adtrade/ATNetworking.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "Classes/**/*.[h,m]",
    "requires_arc": true
}

Pin It on Pinterest

Share This