Abhijith12 / linkedin-j

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

CANNOT GET STATUS UPDATES OF ANY KIND #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I simply want to returned status updates of the "SHARED_ITEM" type.  I've 
discovered, I cannot return status updates of any type no matter what I do.  My 
initial test is to return back the last shared items "updateKey" so that later 
I may use that key to return stats for that shared item.  There is nothing 
build in to retrieve stats on likes, comments, or anything related to a status 
update.  This returns an out of bounds error, because the system never returns 
status updates..

    NetworkUpdateType = createObject("java", "com.google.code.linkedinapi.client.enumeration.NetworkUpdateType");
    STATUS_UPDATE = NetworkUpdateType.valueOf("PROFILE_UPDATE"); 
    enumSet = createObject("java", "java.util.EnumSet");
    network = variables.LinkedInApiClient.getNetworkUpdates(enumSet.of(STATUS_UPDATE));
    numOfUpdates = network.getUpdates().getTotal(); 
    result = variables.LinkedInApiClient.getNetworkUpdates(numOfUpdates, numOfUpdates); 
    lastUpdate = result.getUpdates().getUpdateList().get(0);
    key = lastUpdate.getUpdateKey();

Original issue reported on code.google.com by myeyesqu...@gmail.com on 23 Jan 2012 at 8:47