3

我已经在 iPhone 中集成了 gigya 以进行登录。它工作正常。现在我需要检索登录用户的电子邮件联系人。如何以编程方式在 iPhone 中做到这一点?

4

1 回答 1

1

我终于搞定了

[gsAPI sendRequest:@"socialize.getContacts" params:nil useHTTPS:YES delegate:self context:nil];

}

- (void) gsDidReceiveResponse:(NSString*)method response:(GSResponse*)response context:(id)context
{ 
NSString *resMsg = [NSString stringWithFormat:@"\n errorCode=%d\n errorMessage=%@\n response.data=%@\n",   
                    response.errorCode, response.errorMessage, [response.data stringValue]];  
  NSLog(@"gsDidReceiveResponse:\nMethod=%@\nResponse=%@\n context=%@",method,resMsg,context);
}
于 2011-06-17T11:37:08.557 回答