I have to pass data like json format to the server
{"email":"[email protected]","password":"abc"}
and i have used this code but data is not pass to the server please help me..
NSDictionary *dict1=@{@"email": @"[email protected]"};
NSDictionary *dict2=@{@"password": @"biren"};
services *srv=[[services alloc]init];
NSString *str=@"http://emailsending.in/setting_saver_api/";
NSString *method=@"login.php";
NSMutableDictionary *dict=[[NSMutableDictionary alloc]init];
[dict setValue:dict1 forKey:@"email"];
[dict setValue:dict2 forKey:@"password"];
[srv postToURL:str withMethod:method andParams:dict completion:^(BOOL success, NSDictionary *responseObj)
{
NSLog(@"res :%@",responseObj);
NSLog(@"%d",success);
NSLog(@"Successfully..................");
}];