ChimpKit3
ChimpKit3 copied to clipboard
Sample code uses ChimpKitRequest, which no longer exists
With ChimpKit 3.1.1, the completion block to callAPIMethod is ^(NSURLResponse *response, NSData *data, NSError *error) but the sample code uses ChimpKitRequest.
Thanks !
This still doesn't work, can we get an update on this???
@shalem93 Have you given the code sample from the example app a try?
[[ChimpKit sharedKit] callApiMethod:@"lists/subscribe"
withParams:params
andCompletionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
if (kCKDebug) NSLog(@"Response String: %@", responseString);
id parsedResponse = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
if (![parsedResponse isKindOfClass:[NSDictionary class]] || ![parsedResponse[@"email"] isKindOfClass:[NSString class]] || error) {
// Run Error Code
}
}];