Latest 0.0.1
Homepage https://github.com/pj4533/AFStatHatClient
License MIT
Platforms ios 5.0, requires ARC
Dependencies AFNetworking
Authors

An AFHTTPClient subclass for reporting to StatHat!

Instructions

Install

Available on CocoaPods, simply add to your Podfile:

pod "AFStatHatClient"

then do a ‘pod install’

Code

EZ posting of counts and values are supported.

With returning success/failure blocks:

AFStatHatClient* stathat = [[AFStatHatClient alloc] initWithEZKey:@"YOUR EZ KEY"];
[stathat postEZStat:@"Example" withCount:@1 success:^(AFHTTPRequestOperation *operation, id responseObject) {
    NSLog(@"%@", responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
    NSLog(@"%@", error);
}];

Or simply:

AFStatHatClient* stathat = [[AFStatHatClient alloc] initWithEZKey:@"YOUR EZ KEY"];
[stathat postEZStat:@"Example" [email protected]];

Contact

PJ Gray

License

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

Latest podspec

{
    "name": "AFStatHatClient",
    "version": "0.0.1",
    "summary": "An AFHTTPClient subclass for reporting to StatHat.",
    "homepage": "https://github.com/pj4533/AFStatHatClient",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "PJ Gray": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pj4533/AFStatHatClient.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "AFStatHatClient",
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This