aditcodes / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

Company Updates Post - parse URL and text of the Post #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I use: 

client.getNetworkUpdates(EnumSet.of(NetworkUpdateType.SHARED_ITEM, 
NetworkUpdateType.SHARED_ITEM, NetworkUpdateType.COMPANY_FOLLOW_UPDATE), 0, 
limit, startDate, endDate).getUpdates().getUpdateList(); 

so as to get all company and connection updates a linkedin user is following.

2. I cannot get the text or the URL of a company post.

For example with person shares I can use:
1.update.getUpdateContent().getPerson().getCurrentShare().getComment(); for the 
text.
2.update.getUpdateContent().getPerson().getCurrentShare().getContent().getSubmit
tedUrl(); for the URL.

Which is the equivalent for a company update?

Kind Regards 

Original issue reported on code.google.com by mtsaha...@gmail.com on 10 May 2012 at 1:22