Created
December 31, 2014 11:20
-
-
Save funkyboy/19b54f70e74529687407 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[BAAUser loginWithUsername:@"test" | |
password:@"test" | |
completion:^(BOOL success, NSError *error) { | |
if (success) { | |
BAAClient *c = [BAAClient sharedClient]; | |
[c postPath:@"/plugin/addcar.bb" | |
parameters:@{@"name" : @"ferrari"} | |
success:^(id responseObject) { | |
NSLog(@"res %@", responseObject); | |
} failure:^(NSError *error) { | |
NSLog(@"error %@ ", error); | |
}]; | |
} else { | |
NSLog(@"error %@", error); | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment