我想获得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]; }
答案 0 :(得分:0)
阅读LinkedIn的Api文档。您必须进行网络请求并获取答案。