gpt4 book ai didi

java - 在 linkedin API 中获取特定用户网络更新

转载 作者:行者123 更新时间:2023-11-29 09:02:25 24 4
gpt4 key购买 nike

我在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com