我在我的应用程序中使用 LinkedIn api 。当我从我的应用程序中搜索人时。我获得成功身份验证并获取登录用户个人资料。但是,当我尝试从应用程序中搜索人员时,它会给我以下错误。
{
errorCode = 0;
message = "Access to people search denied.";
requestId = J3XWUDNQGX;
status = 403;
timestamp = 1397118995510;
}
以下是代码:
NSURL *url = [NSURL URLWithString:@"http://api.linkedin.com/v1/people-search?first-name=Andru&last-name=John"];
OAMutableURLRequest *request =
[[OAMutableURLRequest alloc] initWithURL:url
consumer:consumer
token:accessToken
callback:nil
signatureProvider:nil];
[request setValue:@"json" forHTTPHeaderField:@"x-li-format"];
OADataFetcher *fetcher = [[OADataFetcher alloc] init];
[fetcher fetchDataWithRequest:request
delegate:self
didFinishSelector:@selector(searchApiCallResult:didFinish:)
didFailSelector:@selector(searchApiCallResult:didFail:)];
[request release];
任何人都可以帮助我吗?