Created
July 15, 2016 14:36
-
-
Save harveyslash/3033bc7f25059d24358b01ad6e7ce997 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
[objectManager postObject:nil | |
path:@"/users/api/login" | |
parameters:queryParams | |
success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) { | |
// Token* token = (Token*)[mappingResult firstObject] ; | |
// [AppDelegateHandle setToken:token]; | |
// success(token); | |
} failure:^(RKObjectRequestOperation *operation, NSError *error) { | |
NSArray* e = [[error userInfo] objectForKey:RKObjectMapperErrorObjectsKey]; | |
Error *err = (Error*)[e objectAtIndex:0]; | |
NSLog(@"%@",[err.badRequest allValues] ); | |
failure(operation,error); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment