AFStatHatClient 0.0.1

AFStatHatClient 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Unclaimed.



  • By
  • PJ Gray

An AFHTTPClient subclass for reporting to StatHat!

Instructions

Install

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]1];

Contact

PJ Gray

License

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