Latest 0.0.1
Homepage https://github.com/phenomen2277/JSONRequester
License MIT
JSON requests made easy within the Objective-C.

[![CI Status](http://img.shields.io/travis/Jone Samra/JSONRequester.svg?style=flat)](https://travis-ci.org/Jone Samra/JSONRequester)
Version
License
Platform

Example

Below is a simple console application demonstrating the usage. The code will NSLog the country for which your IP is located.

#import <Foundation/Foundation.h>
#import "JSONRequester.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        JSONRequester *req = [[JSONRequester alloc] init];
        JSONResponse *res = [req executeWithURL:@"http://ip-api.com/json" andRequestType:@"GET" andParameters:nil];

        if(res.status == 200){
            NSError *error;
            NSMutableDictionary *jsonData = [NSJSONSerialization JSONObjectWithData:res.data options:kNilOptions error:&error];

            if(error == nil)
                NSLog(@"%@", [jsonData objectForKey:@"country"]);
        }

    }
    return 0;
}

JSONRequester is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "JSONRequester"

Author

Jone Samra, abulewis.com

License

JSONRequester is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JSONRequester",
    "version": "0.0.1",
    "summary": "An easier way to do JSON-requests within Obj-C.",
    "description": "The packge contains to Objetive-C classes. One class (JSONRequester) will take care of doing the requests. The other one (JSONResponse) will hold the returned data and its status when doing the requests.n",
    "homepage": "https://github.com/phenomen2277/JSONRequester",
    "license": "MIT",
    "authors": "Jone Samra",
    "social_media_url": "https://twitter.com/JohnnyLewish",
    "source": {
        "git": "https://github.com/phenomen2277/JSONRequester.git",
        "tag": "0.0.1"
    },
    "source_files": "Pod/Classes/**/*.{h,m}",
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This