Linkedin-j-update.getUpdateContent().getPerson().getCurrentStatus()在使用Linkedin-j时始终返回NULL
我正在尝试获取Linkedin用户的网络更新 我的代码是-Linkedin-j-update.getUpdateContent().getPerson().getCurrentStatus()在使用Linkedin-j时始终返回NULL,linkedin,linkedin-j,linkedin-jsapi,spring-social-linkedin,linkedin-gem,Linkedin,Linkedin J,Linkedin Jsapi,Spring Social Linkedin,Linkedin Gem,我正在尝试获取Linkedin用户的网络更新 我的代码是- //Network ---> System.out.println("Linkedin Users Network ---> Details..."); @SuppressWarnings("deprecation") Set<NetworkUpdateType> nUpdate = EnumSet.of(NetworkUpdateType.
//Network --->
System.out.println("Linkedin Users Network ---> Details...");
@SuppressWarnings("deprecation")
Set<NetworkUpdateType> nUpdate = EnumSet.of(NetworkUpdateType.SHARED_ITEM, NetworkUpdateType.STATUS_UPDATE);
int start =0;
int count =20;
Network network = client.getNetworkUpdates(nUpdate, start, count);
System.out.println("Total updates fetched:" + network.getUpdates().getTotal());
for (Update update : network.getUpdates().getUpdateList())
{
System.out.println("-------------------------------");
System.out.println(update.getUpdateKey() + ":" + update.getUpdateContent().getPerson().getFirstName() + " "
+ update.getUpdateContent().getPerson().getLastName() + "->" + update.getUpdateContent().getPerson().getCurrentStatus());
if (update.getUpdateComments() != null)
{
System.out.println("Total comments fetched:" + update.getUpdateComments().getTotal());
for (UpdateComment comment : update.getUpdateComments().getUpdateCommentList())
{
System.out.println(comment.getPerson().getFirstName() + " " + comment.getPerson().getLastName() + "->" + comment.getComment());
}
}
}
//网络-->
System.out.println(“Linkedin用户网络--->详细信息…”);
@抑制警告(“弃用”)
Set numpdate=EnumSet.of(NetworkUpdateType.SHARED\u项,NetworkUpdateType.STATUS\u UPDATE);
int start=0;
整数计数=20;
Network=client.getNetworkUpdates(numpdate、start、count);
System.out.println(“获取的总更新:+network.getUpdates().getTotal());
对于(更新:network.getUpdates().getUpdateList())
{
System.out.println(“------------------------------------”;
System.out.println(update.getUpdateKey()+”:“+update.getUpdateContent().getPerson().getFirstName()+”“
+update.getUpdateContent().getPerson().getLastName()+“->”+update.getUpdateContent().getPerson().getCurrentStatus());
if(update.getUpdateComments()!=null)
{
System.out.println(“获取的总注释:+update.getUpdateComments().getTotal());
对于(UpdateComment注释:update.getUpdateComments().getUpdateCommentList())
{
System.out.println(comment.getPerson().getFirstName()+“”+comment.getPerson().getLastName()+“->”+comment.getComment());
}
}
}
但是这里-
update.getUpdateContent().getPerson().getCurrentStatus()
始终返回NULL
任何建议-我需要做什么。?对我来说同样的问题。没有人帮助我们。奇怪的问题或者没有人更新库。