TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Unclaimed.
An AFHTTPClient subclass for reporting to StatHat!
then do a 'pod install'
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" withCount@1];
PJ Gray
AFStatHatClient is available under the MIT license. See the LICENSE file for more info.