如何在您的IOS应用程序中获取linkedIn联系人?

时间:2014-10-16 08:56:55

标签: xcode ios7 ios6 ios8 xcode6

我想获得logIn用户&的LinkedIn联系人之后,如果我们点击联系人,则其消息框已打开。 我正在使用的代码如下:

OAMutableURLRequest *request = [[OAMutableURLRequest alloc] initWithURL:requestTokenURL consumer:self.consumer token:nil callback:linkedInCallbackURL signatureProvider:nil]; 
[request setHTTPMethod:@"POST"];


NSURL *url = [NSURL URLWithString:@"api.linkedin.com/v1/people/~/connections"]; [request setValue:@"json" forHTTPHeaderField:@"x-li-format"]; 
OADataFetcher *fetcher = [[OADataFetcher alloc] init];
 [fetcher fetchDataWithRequest:request delegate:self didFinishSelector:@selector(requestTokenResult:didFinish:) didFailSelector:@selector(requestTokenResult:didFail:)];
 [request release]; }

1 个答案:

答案 0 :(得分:0)

阅读LinkedIn的Api文档。您必须进行网络请求并获取答案。