GIgya Native Login without using Facebook and Twitter Account

Posted by Wodjefer on Stack Overflow See other posts from Stack Overflow or by Wodjefer
Published on 2014-04-23T12:48:41Z Indexed on 2014/06/04 21:25 UTC
Read the original article Hit count: 482

Filed under:
|
|

Following code that i am using to login but i am getting a Null response

- (IBAction) signInPressed : (id)sender

{

[super signInPressed:sender];


 NSLog(@"ACCLoginViewController_iPhone Sign-IN Pressed");



//Load the Gigya login UI component, passing this View Controller as a delegate.



 GSRequest *request  =  [GSRequest requestForMethod:@"accounts.login"];



[request.parameters setObject:self.emailField.text forKey:@"loginID"];



 [request.parameters setObject:self.passwordField.text forKey:@"password"];



 request.parameters[@"loginID"] = @"email";



[request sendWithResponseHandler:^(GSResponse *response, NSError *error) {


if (!error) {

NSLog(@"the resposne = %@",response);

 }

 else {

  // Check the error code according to the GSErrorCode enum, and handle it.


 NSLog(@"the Error = %@",error.description);


 }

 }];



  //  [self loadTabbar];


}

© Stack Overflow or respective owner

Related posts about ios

Related posts about xcode5