amorenew / linkedin-j

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

Cannot get actual content of update-type SHARE but can get its' respective comments. #89

Open GoogleCodeExporter opened 9 years ago

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

1. Get all updates for the companies the member is currently following(CMPY).

2. Filter updates of update-key = SHARE.

3. Get comments for the update of type SHARE(works perfectly).

4. Cannot get actual content of update-type SHARE(does not work).

QUESTION: How to get get the actual content of the update of update-key = 
SHARE. Please comment on how to access its contents if this is not an issue ?

version:linkedin-j-1.0.415-android
OS:windows 7

Addln Info:
I use update.getUpdateComments().getUpdateCommentList() to get the comments for 
the update.

How can I get the content of the update itself? 
I tried update.getUpdateContent() , but there seems to be no option to get the 
content of the SHARE for a company.

Original issue reported on code.google.com by arun.pad...@mmpsd.com on 24 Dec 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Hello,

As far as I understand there is no way to get the actual content of a linkedin 
post (its text, link, link name, link description). I am correct? Do you plan 
to fix this in the near feature?

Kind Regards,
Manos 

Original comment by mtsaha...@gmail.com on 7 Jan 2012 at 12:56

GoogleCodeExporter commented 9 years ago
Sorry for the late response.
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:18