如何从iPhone操作系统中检索提供商的电子邮件联系人?

问题描述 投票:3回答:1

我已经在iPhone中集成了gigya用于登录目的。它工作正常。现在我需要检索登录用户的电子邮件联系人。如何以编程方式在iPhone中执行此操作?

iphone contacts gigya
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);
}
© www.soinside.com 2019 - 2024. All rights reserved.