开发者

linkedin-j fetching all network updates

I am using linkedin-j for fetching linkedin data

        Set<NetworkUpdateType> set = new HashSet<NetworkUpdateType>();
        set.add(NetworkUpdateType.SHARED_ITEM);

        Network network = client.getNetworkUpdates(set);

and it returns only 10 my own network updates. How to get all the public updates (not necessarily my own network connections) using these linkedin apis开发者_StackOverflow中文版?


Try like this,

Set<NetworkUpdateType> set = new HashSet<NetworkUpdateType>();
set.add(NetworkUpdateType.SHARED_ITEM);
Network network = client.getNetworkUpdates(set,1, 50);

Here First argument is START and second argument is END.

So you will get 50 results.

Total :102
Start :1
Count :50

You can iterate over Total. :)


You can get your updates and updates of your first degree connections using the LinkedIn APIs, but you cannot get all updates across all people.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜