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

标签 java api linkedin linkedin-j

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

相关文章:

ruby-on-rails - 设计Omniauth + Linkedin错误。 “Not found. Authentication passthru”

java - 使用适用于 android 的 SIMPLE XML 库将不同命名的元素解析为单个列表

java - 在特定位置将一张图像添加/覆盖到另一张图像?

java - 从 servlet 尝试时,我没有看到创建的目录。这是为什么?

node.js - 如果路由未知,Express.js会忽略SyntaxError

ruby-on-rails - LinkedIn Oauth 错误 : 'The partner did did not properly implement the authentication protocol' on browser back after signin

java - 无法将对象从 Firebase 数据转换为 POJO

api - 可以创建自定义界面,利用由 Alfresco 管理的文件吗?

api - 在使用大多数 API 时,为什么它们需要两种类型的身份验证,即 key 和 secret ?

ruby-on-rails - LinkedIn OAuth 返回不明确的错误