akhil2909 / linkedin-j

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

Unable to retrieve the content of a SHARE #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call GetNetworkUpdates
2. Examine the data that is returned for updates with type 'SHARE'

What is the expected output? What do you see instead?
- I expect to see the text (and link, if any) of the post that was shared. I 
can see the Comments and the Likes but not the actual content of the post

Please provide any additional information below.
I believe this is similar to issue #89 

Original issue reported on code.google.com by sa...@nextprinciples.com on 25 Feb 2012 at 2:55

GoogleCodeExporter commented 9 years ago
There are two ways to get the content of a share depending on how the item was 
shared.
update.getUpdateContent().getPerson().getCurrentShare().getComment()
and
update.getUpdateContent().getPerson().getCurrentShare().getContent()

You should try both methods and see if any of them work.

Let me know if you run into problems.

Original comment by nabeelmukhtar on 28 Feb 2012 at 6:22