问题描述
|
我已将gigya集成到iPhone中以进行登录。工作正常。现在,我需要检索登录用户的电子邮件联系人。如何在iPhone中以编程方式做到这一点?
解决方法
我终于明白了
[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);
}