我在 API 中使用链接。我想通过名称搜索我的连接。完成了
我的第二件事是我需要获取 searched users new connection
,获取状态更新并提供状态更新
我正在使用 linkedin-j jar 文件。
我得到了整体连接新连接。
Network network = linkedin.getConnectionsNewConnectionNetwork(linkedinCrawlerWithOAuth.liClientWithAuth);
System.out.println("Total updates fetched:" + network.getUpdates().getTotal());
System.out.println("--------NetWork Updates ---------\n");
for(Update update:network.getUpdates().getUpdateList()){
Connections newConnection =linkedin.getConnectionsFromUpdateContent(linkedinCrawlerWithOAuth.liClientWithAuth,update.getUpdateContent());
for(Person person:newConnection.getPersonList()){
if(!( "private".equals(person.getId()) )){
printProfileDetails(linkedin.printProfileById(linkedinCrawlerWithOAuth.liClientWithAuth,person));
}
}
}
但我想获得特定用户的新连接。你能帮我吗?
最佳答案
您可以尝试获取连接类型 (CONN) 的网络更新。这将返回配置文件在上下文中建立的新联系人。 在 REST 形式中,
http://api.linkedin.com/v1/people/~/network/updates?type=CONN&count=50&start=0
这是 REST API 调用。 linkedin-j jar 的 Connections API 中应该有一个等效的签名。
关于java - 在 linkedin API 中获取特定用户网络更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16578872/